django1/django/db/migrations
Aymeric Augustin 3bb0f118ca [1.7.x] 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.

Backport of 8b5b199 from master
2014-04-26 17:46:57 +02:00
..
operations [1.7.x] Fixed #3214 -- Stopped parsing SQL with regex. 2014-04-26 17:46:57 +02:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py [1.7.x] Fixed #22397 -- Issues removing M2M field with explicit through model 2014-04-18 18:34:00 -04:00
executor.py Fixed many typos in comments and docstrings. 2014-03-03 07:38:09 -05:00
graph.py Fixed #21142: Dependency failures on unmigrated apps. 2014-01-08 13:00:12 +00:00
loader.py Fix bad conflict detection during makemigrations 2014-03-08 13:53:20 -08:00
migration.py [1.7.x] Fixed flake8 errors. 2014-04-20 13:09:12 -04:00
optimizer.py Fixed many typos in comments and docstrings. 2014-03-03 07:38:09 -05:00
questioner.py Fixed #22239 -- Add auto detection of renamed models 2014-03-10 13:55:44 +13:00
recorder.py Renamed AppCache to Apps. 2013-12-24 12:25:17 +01:00
state.py [1.7.x] Fixed #22397 -- Issues removing M2M field with explicit through model 2014-04-18 18:34:00 -04:00
writer.py [1.7.x] Fixed #22350 -- Consistently serialize bytes and text in migrations. 2014-04-13 19:03:20 -04:00