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
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration data_products.0001_initial is applied before its dependency virtual_labs.0005_virtuallabinstance on database 'default'.
The text was updated successfully, but these errors were encountered:
This is because we didn’t commit migration files, as recommended in the django doc:
The migration files for each app live in a “migrations” directory inside of that app, and are designed to be committed to, and distributed as part of, its codebase. You should be making them once on your development machine and then running the same migrations on your colleagues’ machines, your staging machines, and eventually your production machines.
As such, we should remove the makemigrations commands from the docker images, and run them locally so that they can be committed.
gpelouze
changed the title
Migrations on deployment
Migrations fail during deployment
Oct 9, 2023
When deploying
v1.0.6-beta
, we get:django.db.migrations.exceptions.InconsistentMigrationHistory: Migration data_products.0001_initial is applied before its dependency virtual_labs.0005_virtuallabinstance on database 'default'.
The text was updated successfully, but these errors were encountered: