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