Django-south not detecting DB changes

后端 未结 1 520
抹茶落季
抹茶落季 2021-01-07 03:30

I have updated our project from svn and I have new migration files. When I use :

./work/manage.py schemamigration mypackage --auto

I have t

1条回答
  •  -上瘾入骨i
    2021-01-07 04:26

    If you already have the migration files, there is no need to run schemamigration as that just generates the migration files. To apply the migration files to the database, run:

    ./work/manage.py migrate mypackage --merge
    

    The merge flag will run any missed migrations as a result of an SVN update.

    0 讨论(0)
提交回复
热议问题