Skip to content

Is it good practise to run migration each I boot my server? #701

Answered by dhui
jjauzion asked this question in Q&A
Discussion options

You must be logged in to vote

For SQLite, probably. e.g. assuming you only have one server
There might be issues if you start multiple instances of your application since the sqlite3 db driver doesn't support distributed locks

Also if you need to rollback migrations (assuming doing so is compatible with your application) or a migration fails, you'll need to use the CLI. For failed migrations, you'll need to fix the issue and force the dirty migration to the previous version.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jjauzion
Comment options

Answer selected by Fontinalis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants