我上传了修改后的代码并对模型进行了一些更改。当我运行heroku run python manage.py migrate app
来应用数据库迁移时,它给了我一个错误
CommandError: Conflicting migrations detected (0004_auto_20150819_0827, 0008_auto_20150813_1444 in app).
To fix them run 'python manage.py makemigrations --merge'
所以,当我运行heroku run python manage.py makemigrations --merge
时,它给了我输出:
Created new merge migration /app/app/migrations/0009_merge.py
现在如何将此迁移应用于我的数据库?
也许
heroku run python manage.py migrate
或者看看它适用的内容:
heroku run python manage.py showmigrations