Update fix-mariadb.py

This commit is contained in:
tcely 2025-05-04 06:34:09 -04:00 committed by GitHub
parent fc89178f28
commit b5828801de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ class Command(BaseCommand):
to_column=uuid_column_str, to_column=uuid_column_str,
deferrable='', deferrable='',
) )
statement_list = list(( statement_list = [ f'{statement};' for statement in (
remove_fk, remove_fk,
schema.sql_alter_column % dict( schema.sql_alter_column % dict(
table=media_table_str, table=media_table_str,
@ -162,7 +162,7 @@ class Command(BaseCommand):
), ),
), ),
add_fk, add_fk,
)) ) ]
pp( statement_list ) pp( statement_list )
self.stdout.write('Tables to delete:') self.stdout.write('Tables to delete:')