1
0
mirror of https://github.com/django/django.git synced 2024-12-29 04:26:28 +00:00
django/tests/migrations
Markus Holtermann bd80fa6b0f [1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.

Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.

Backport of f287bec583 from master
2015-02-13 15:21:10 +01:00
..
faulty_migrations [1.8.x] Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:31:17 -05:00
migrations_test_apps [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations
test_migrations_backwards_deps_1 Revert "Fixed #23474 -- Prevented migrating backwards from unapplying the wrong migrations." 2014-09-24 15:49:30 -04:00
test_migrations_conflict
test_migrations_custom_user [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations_empty Fixed #23359 -- Added showmigrations command to list migrations and plan. 2014-12-31 14:14:28 -05:00
test_migrations_first
test_migrations_no_ancestor
test_migrations_no_changes [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations_no_default [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations_run_before
test_migrations_squashed
test_migrations_squashed_complex Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_squashed_complex_multi_apps Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_squashed_erroneous Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_unmigdep
__init__.py
models.py Refs #23822 -- Made MigrationOptimizer aware of model managers 2015-01-07 17:33:04 -05:00
test_autodetector.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_base.py Fixed #23872 -- Removed sensitivity of migrations tests to CWD. 2014-11-19 15:03:47 -07:00
test_commands.py [1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations 2015-02-13 15:21:10 +01:00
test_executor.py [1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations 2015-02-13 15:21:10 +01:00
test_graph.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_loader.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_multidb.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_operations.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_optimizer.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_state.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_writer.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00