Squashing multiple South migrations into one migration

后端 未结 3 1015
慢半拍i
慢半拍i 2021-02-10 14:09

During development I created many migrations, often going back and forth about how I wanted to implement something.

Now it is time to push it to production, but I am get

3条回答
  •  情深已故
    2021-02-10 14:42

    Have you tried deleting all migrations, then doing ./manage.py schemamigration myapp --init ?

    Remember, this will break anything that relies on those migrations, so only do it if you are not in production yet.

提交回复
热议问题