我更改了架构,然后无法进行初始迁移来检测更改(没有要应用的迁移错误)。然后,我执行以下操作:
在我的表,数据库中的django_migrations文件夹以及应用程序中的迁移中,一切看起来都很不错,但是现在当我运行代码时,我得到了:
You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
当我跑步时:
pipenv run python3 manage.py makemigrations core
我没有发现任何变化。
这是我的数据库结构:
Schema | Name | Type | Owner
--------+----------------------------+-------+-----------
public | auth_group | table | mobiusapi
public | auth_group_permissions | table | mobiusapi
public | auth_permission | table | mobiusapi
public | auth_user | table | mobiusapi
public | auth_user_groups | table | mobiusapi
public | auth_user_user_permissions | table | mobiusapi
public | core_genericpart | table | mobiusapi
public | core_org | table | mobiusapi
public | core_partlisting | table | mobiusapi
public | core_specificpart | table | mobiusapi
public | core_user | table | mobiusapi
public | django_admin_log | table | mobiusapi
public | django_content_type | table | mobiusapi
public | django_migrations | table | mobiusapi
public | django_session | table | mobiusapi
我的移民有:
----+------+--------------+-------------------------------
1 | core | 0001_initial | 2020-08-25 12:13:17.377117-07
此错误来自何处?我应该忽略它,因为数据库中一切正常吗?