onaio / onadata

Collect, Analyze and Share
https://ona.io
Other
183 stars 132 forks source link

Fix untracked Django's view of migration state #2663

Closed kelvin-muchiri closed 1 month ago

kelvin-muchiri commented 1 month ago

Changes / Features implemented

A previous change to safe rename indexes did not separate database and state hence Django does not recognize that the schema changes were applied. Running makemigrations command creates a new migration since the model state and actual state of the database are out of sync.