Refs #29198 -- Fixed migrate --plan crash if RunSQL uses a list or tuple.

Also fixed test failures if sqlparse isn't installed.
This commit is contained in:
Tim Graham 2018-09-19 15:27:40 -04:00
parent c99d379f53
commit 495abe0095
4 changed files with 28 additions and 20 deletions

View file

@ -15,5 +15,5 @@ class Migration(migrations.Migration):
('id', models.AutoField(primary_key=True)),
],
),
migrations.RunSQL('SELECT * FROM migrations_author', 'SELECT * FROM migrations_book')
migrations.RunSQL(['SELECT * FROM migrations_author'], ['SELECT * FROM migrations_book'])
]