Using south to refactor a Django model with inheritance

后端 未结 4 1906
遇见更好的自我
遇见更好的自我 2020-12-04 07:40

I was wondering if the following migration is possible with Django south and still retain data.

Before:

I currently have two apps, one called tv, one calle

4条回答
  •  旧巷少年郎
    2020-12-04 08:12

    I did a similar migration and I chose to do it in multiple steps. In addition to creating the multiple migrations, I also created the backward migration to provide a fallback if things went wrong. Then, I grabbed some test data and migrated it forward and backwards until I was sure it was coming out correctly when I migrated forwards. Finally, I migrated the production site.

提交回复
热议问题