You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that migration should be the same on the production and development environment.
It is better approach to keep same schema definition between production and development.
But ./ace migration:run throws exception on NODE_ENV=production without --force flag.
True, it is not safe to run migrations in production, as migrations can override data in your existing tables. Ace disables it by default and if you are sure that you want to run migrations than you can always use the --force flag
Use the force flag, there is nothing wrong with it. It is there to make sure you are not running migration:run by mistake, which may end up in loosing important data. As long as you know what you are doing you can use --force and it's all good.
Hi there.
I think that migration should be the same on the production and development environment.
It is better approach to keep same schema definition between production and development.
But
./ace migration:run
throws exception onNODE_ENV=production
without--force
flag.https://github.com/adonisjs/adonis-lucid/blob/master/src/Commands/Run.js#L33
Why throws error in production environment?
Sorry for my English.
The text was updated successfully, but these errors were encountered: