1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[1.7.x] Fixed #24337 - Added stronger documentation warning about automatic fake-initial.

This commit is contained in:
Carl Meyer 2015-02-13 11:47:35 -07:00
parent 1b93b0977d
commit 86e9744593

View File

@ -742,7 +742,8 @@ If you already have pre-existing migrations created with
migration directories and make new initial migrations in the new format. migration directories and make new initial migrations in the new format.
* Run ``python manage.py migrate``. Django will see that the tables for the * Run ``python manage.py migrate``. Django will see that the tables for the
initial migrations already exist and mark them as applied without running initial migrations already exist and mark them as applied without running
them. them. (Only matching table names are checked; not their full schema - it's up
to you to make sure the existing schema is up to date with your models!)
That's it! The only complication is if you have a circular dependency loop That's it! The only complication is if you have a circular dependency loop
of foreign keys; in this case, ``makemigrations`` might make more than one of foreign keys; in this case, ``makemigrations`` might make more than one