What is your favorite solution for managing database migrations in django? [closed]
I’ve been using South, but Migratory looks promising as well.
I’ve been using South, but Migratory looks promising as well.
This can be done fairly easily using migrations.SeparateDatabaseAndState. Basically, we use a database operation to rename the table concurrently with two state operations to remove the model from one app’s history and create it in another’s. Remove from old app python manage.py makemigrations old_app –empty In the migration: class Migration(migrations.Migration): dependencies = [] database_operations = … Read more