8b5b199e20
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. |
||
---|---|---|
.. | ||
faulty_migrations | ||
migrations_test_apps | ||
test_migrations | ||
test_migrations_2 | ||
test_migrations_conflict | ||
test_migrations_squashed | ||
test_migrations_unmigdep | ||
__init__.py | ||
models.py | ||
test_autodetector.py | ||
test_base.py | ||
test_commands.py | ||
test_executor.py | ||
test_graph.py | ||
test_loader.py | ||
test_operations.py | ||
test_optimizer.py | ||
test_state.py | ||
test_writer.py |