<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Beata on Medium]]></title>
        <description><![CDATA[Stories by Beata on Medium]]></description>
        <link>https://medium.com/@BeataLyn?source=rss-57c0dfe364fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qLh5hilYjCTs3IDgdztVsA.jpeg</url>
            <title>Stories by Beata on Medium</title>
            <link>https://medium.com/@BeataLyn?source=rss-57c0dfe364fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:42:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BeataLyn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Restoring Laravel Migration Table]]></title>
            <link>https://medium.com/@BeataLyn/restoring-laravel-migration-table-d796b6f53ac2?source=rss-57c0dfe364fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/d796b6f53ac2</guid>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Beata]]></dc:creator>
            <pubDate>Thu, 15 Nov 2018 14:25:07 GMT</pubDate>
            <atom:updated>2019-12-19T04:41:19.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I accidentally dropped the `migration` table on development environment.</p><p>Here’s a note of how I finally make the table get restored.</p><ol><li>Create an empty table for storing migration status.</li></ol><pre>$ ./artison migrate:install</pre><p>2. Query pending migrations that need to be recovered.</p><pre>$ ./artison migrate:status<br> + — — — + — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br> | Ran? | Migration |<br> + — — — + — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br> | N | 2016_06_01_000001_create_oauth_auth_codes_table |<br> | N | 2016_06_01_000002_create_oauth_access_tokens_table |<br> | N | 2016_06_01_000003_create_oauth_refresh_tokens_table |<br> | N | 2016_06_01_000004_create_oauth_clients_table |<br> | N | 2016_06_01_000005_create_oauth_personal_access_clients_...|<br> + — — — + — — — — — — — — — — — — — — — — — — — — — — — — — — — +</pre><p>3. Add all records of preceding list into `migrations` table:</p><pre>migration = &lt;Migration&gt;<br>batch = 1</pre><p>4. Check migration status again, they are already been restored.</p><pre>$ ./artisan migrate:status<br> + — — — + — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br> | Ran? | Migration |<br> + — — — + — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br> | Y | 2016_06_01_000001_create_oauth_auth_codes_table |<br> | Y | 2016_06_01_000002_create_oauth_access_tokens_table |<br> | Y | 2016_06_01_000003_create_oauth_refresh_tokens_table |<br> | Y | 2016_06_01_000004_create_oauth_clients_table |<br> | Y | 2016_06_01_000005_create_oauth_personal_access_clients_...|<br> + — — — + — — — — — — — — — — — — — — — — — — — — — — — — — — — +</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d796b6f53ac2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native: Requiring Custom Node Module from environment setting.]]></title>
            <link>https://medium.com/@BeataLyn/react-natives-metro-bundler-doesn-t-support-dynamic-requiring-c0259aeb967a?source=rss-57c0dfe364fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0259aeb967a</guid>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Beata]]></dc:creator>
            <pubDate>Fri, 13 Apr 2018 07:40:05 GMT</pubDate>
            <atom:updated>2019-12-19T04:43:12.208Z</atom:updated>
            <content:encoded><![CDATA[<p>React Native: Requiring Custom Node Module from environment setting.</p><p>React Native’s Metro bundler doesn’t support dynamic requiring. When we try to require module with a variable, an error would thrown by Metro bundler:</p><pre>const theme = require(&#39;src/themes/&#39; + APP_THEME);<br># Metro bundler: can&#39;t resolve module path</pre><p>However, requiring module with variable defined in a static file is possible through creating a new file rn-cli.config.js in the project root directory and place definition of extraNodeModules the file.</p><p>I’m currently using react-native-config to manage environment variables. Here’s an example of how I read the configuration file from CLI argument and parse the file content into a config object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fdcd9327b8ac8136682f702c714a6747/href">https://medium.com/media/fdcd9327b8ac8136682f702c714a6747/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0259aeb967a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>