File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
resources/views/docs/1/digging-deeper Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,10 @@ delete your user's data when they update your app.
5555
5656### Running migrations
5757
58- NativePHP will attempt to migrate your database on each boot-up.
58+ In production builds of your app, NativePHP will check to see if the app version has changed and attempt to migrate
59+ the user's copy of your database in their ` appdata ` folder.
5960
60- You may also wish to manually migrate it during development. You can do this whether the application is running or not,
61- but depending on how your app behaves, it may be better to do it before opening the app.
62-
63- You can do this with the ` native:migrate ` command:
61+ During development, you will need to migrate your development database manually:
6462
6563``` shell
6664php artisan native:migrate
@@ -69,6 +67,9 @@ php artisan native:migrate
6967This command uses the exact same signature as the Laravel ` migrate ` command, so everything you're used to there can be
7068used here.
7169
70+ You can do this whether the application is running or not, but depending on how your app behaves, it may be better to
71+ do it _ before_ running your app.
72+
7273### Refreshing your app database
7374
7475You can completely refresh your app database using the ` native:migrate:fresh ` command:
You can’t perform that action at this time.
0 commit comments