diff options
Diffstat (limited to 'docs/ref/django-admin.txt')
| -rw-r--r-- | docs/ref/django-admin.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index ce3a78f915..fedec7aefa 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -721,6 +721,19 @@ be warned that using ``--fake`` runs the risk of putting the migration state table into a state where manual recovery will be needed to make migrations run correctly. +.. versionadded:: 1.8 + +.. django-admin-option:: --fake-initial + +The ``--fake-initial`` option can be used to allow Django to skip an app's +initial migration if all database tables with the names of all models created +by all :class:`~django.db.migrations.operations.CreateModel` operations in that +migration already exist. This option is intended for use when first running +migrations against a database that preexisted the use of migrations. This +option does not, however, check for matching database schema beyond matching +table names and so is only safe to use if you are confident that your existing +schema matches what is recorded in your initial migration. + .. deprecated:: 1.8 The ``--list`` option has been moved to the :djadmin:`showmigrations` |
