django/tests/migrations
Aymeric Augustin 8b5b199e20 Fixed #3214 -- Stopped parsing SQL with regex.
Avoided introducing a new regex-based SQL splitter in the migrations
framework, before we're bound by backwards compatibility.

Adapted this change to the legacy "initial SQL data" feature, even
though it's already deprecated, in order to facilitate the transition
to migrations.

sqlparse becomes mandatory for RunSQL on some databases (all but
PostgreSQL). There's no API to provide a single statement and tell
Django not to attempt splitting. Since we have a more robust splitting
implementation, that seems like a good tradeoff. It's easier to add a
new keyword argument later if necessary than to remove one.

Many people contributed to both tickets, thank you all, and especially
Claude for the review.

Refs #22401.
2014-04-26 17:46:23 +02:00
..
faulty_migrations Fixed #21302 -- Fixed unused imports and import *. 2013-11-02 15:24:56 -04:00
migrations_test_apps Removed superfluous models.py files. 2013-12-17 11:16:48 +01:00
test_migrations Fixed #22350 -- Consistently serialize bytes and text in migrations. 2014-04-13 18:22:26 -04:00
test_migrations_2 Fixed #22350 -- Consistently serialize bytes and text in migrations. 2014-04-13 18:22:26 -04:00
test_migrations_conflict Fixed #22350 -- Consistently serialize bytes and text in migrations. 2014-04-13 18:22:26 -04:00
test_migrations_squashed Fixed #22350 -- Consistently serialize bytes and text in migrations. 2014-04-13 18:22:26 -04:00
test_migrations_unmigdep Fixed #22350 -- Consistently serialize bytes and text in migrations. 2014-04-13 18:22:26 -04:00
__init__.py Adding a dependency graph class and tests 2013-05-10 12:52:04 +01:00
models.py Renamed AppCache to Apps. 2013-12-24 12:25:17 +01:00
test_autodetector.py Fixed flake8 errors. 2014-04-20 13:08:04 -04:00
test_base.py Ensure cursors are closed when no longer needed. 2014-02-02 12:47:21 -05:00
test_commands.py Fixed #16905 -- Added extensible checks (nee validation) framework 2014-01-20 10:45:21 +08:00
test_executor.py Imported override_settings from its new location. 2013-12-23 21:37:56 +01:00
test_graph.py Fix graph tests 2013-05-30 17:56:53 +01:00
test_loader.py Make test stronger to hopefully fix odd Jenkins failure 2014-01-08 21:20:29 +00:00
test_operations.py Fixed #3214 -- Stopped parsing SQL with regex. 2014-04-26 17:46:23 +02:00
test_optimizer.py flake8 fixes 2013-11-06 20:00:48 -08:00
test_state.py Fixed flake8 errors. 2014-04-20 13:08:04 -04:00
test_writer.py Appeased flake8 2.1.0. 2014-04-21 12:27:34 +02:00