一般讨论

迁移数据库不成功,又没报错

1 条回复 · 2286 次阅读参与讨论 ↓举报

PS E:\Users\dddd\django_projects\test_demo> python manage.py makemigrations 2024-03-19 20:05:40,040 - INFO - generate built-in connection pool success. maxsize=10,10 Migrations for 'api': - Create model PricePolicy - Create model Project - Create model Wiki - Create model UserInfo - Create model TranAction - Create model ProjectUser - Add field creator to project - Create model Module - Create model IssuesType - Create model Issues - Create model FileRepository PS E:\Users\dddd\django_projects\test_demo> python manage.py migrate
2024-03-19 20:05:46,648 - INFO - generate built-in connection pool success. maxsize=10,10 Operations to perform: Apply all migrations: admin, api, auth, contenttypes, sessions Running migrations: No migrations to apply. 新表迁移不成功,数据库没有显示新表, - Create model Module - Create model IssuesType - Create model Issues

参与讨论 1

  • 吴秀峰
    吴秀峰

    python manage.py makemigrations appname 指定一下应用名