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.
55
55
56
56
### Running migrations
57
57
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.
59
60
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:
64
62
65
63
``` shell
66
64
php artisan native:migrate
@@ -69,6 +67,9 @@ php artisan native:migrate
69
67
This command uses the exact same signature as the Laravel ` migrate ` command, so everything you're used to there can be
70
68
used here.
71
69
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
+
72
73
### Refreshing your app database
73
74
74
75
You can completely refresh your app database using the ` native:migrate:fresh ` command:
You can’t perform that action at this time.
0 commit comments