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
Currently, if database does not have migrations table and you run migrations:continue, it creates migrations table and runs all your migrations. if your initial migrations isn't created correctly and you are in the middle of project, you can lost your data.
example of initial migrations (which may be an default output of some tools, i.e. Navicat):
DROPTABLE IF EXISTS `acl_acl`;
CREATETABLE `acl_acl` (
...
)
The text was updated successfully, but these errors were encountered:
It's intentional – migrations:continue should work the first time as migrations:reset (it simplifies deploy for example). We may consider a requirement that the database must be initially empty.
JanTvrdik
changed the title
migrations:continue should not create migrations table
check that database is initially empty
Jan 14, 2016
JanTvrdik
changed the title
check that database is initially empty
migrations:continue should check that database is initially empty
Jan 14, 2016
JanTvrdik
changed the title
migrations:continue should check that database is initially empty
migrations:continue should check that DB is initially empty
Jan 14, 2016
Currently, if database does not have migrations table and you run migrations:continue, it creates migrations table and runs all your migrations. if your initial migrations isn't created correctly and you are in the middle of project, you can lost your data.
example of initial migrations (which may be an default output of some tools, i.e. Navicat):
The text was updated successfully, but these errors were encountered: