mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Try using foreign_key_checks
This commit is contained in:
parent
621a578787
commit
305d27a7af
@ -181,7 +181,8 @@ class Command(BaseCommand):
|
|||||||
deferrable='',
|
deferrable='',
|
||||||
)
|
)
|
||||||
|
|
||||||
schema.execute(remove_fk, None)
|
schema.execute('SET foreign_key_checks=0', None)
|
||||||
|
#schema.execute(remove_fk, None)
|
||||||
schema.execute(
|
schema.execute(
|
||||||
schema.sql_alter_column % dict(
|
schema.sql_alter_column % dict(
|
||||||
table=media_table_str,
|
table=media_table_str,
|
||||||
@ -212,7 +213,8 @@ class Command(BaseCommand):
|
|||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
schema.execute(add_fk, None)
|
#schema.execute(add_fk, None)
|
||||||
|
schema.execute('SET foreign_key_checks=1', None)
|
||||||
|
|
||||||
|
|
||||||
if table_names:
|
if table_names:
|
||||||
|
Loading…
Reference in New Issue
Block a user