如何解决django迁移冲突?

时间:2020-06-01 12:00:07

标签: django

在服务器上出现消息的情况

CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0063_auto_20200530_1040, 0062_merge_20200527_1444 in vendors).
To fix them run 'python manage.py makemigrations --merge'

我遵循了命令,但是现在在执行过程中出现了一个新的迁移文件

Created new merge migration /home/ubuntu/mat/apps/vendors/migrations/0064_merge_20200601_0807.py

但是本地计算机和github没有此文件,因此,每次我将新代码从github拉到服务器时,迁移的差异都会出现问题。 如何正确解决此问题?

0 个答案:

没有答案