Check for pending Django migrations

前端 未结 8 2214
孤独总比滥情好
孤独总比滥情好 2021-02-01 13:05

In Django, is there an easy way to check whether all database migrations have been run? I\'ve found manage.py migrate --list, which gives me the information I want,

8条回答
  •  旧巷少年郎
    2021-02-01 13:36

    I checked it by looking up the table django_migrations, which stores all applied migrations.

提交回复
热议问题