mirror of https://github.com/morpheus65535/bazarr
Fixed table deletion issue with PostgreSQL.
This commit is contained in:
parent
98a0b65d97
commit
479f11fae6
|
@ -34,12 +34,12 @@ def upgrade():
|
||||||
if column_exists('table_movies', 'rowid'):
|
if column_exists('table_movies', 'rowid'):
|
||||||
batch_op.drop_column(column_name='rowid')
|
batch_op.drop_column(column_name='rowid')
|
||||||
|
|
||||||
if 'table_custom_score_profiles' in tables:
|
|
||||||
op.drop_table('table_custom_score_profiles')
|
|
||||||
|
|
||||||
if 'table_custom_score_profile_conditions' in tables:
|
if 'table_custom_score_profile_conditions' in tables:
|
||||||
op.drop_table('table_custom_score_profile_conditions')
|
op.drop_table('table_custom_score_profile_conditions')
|
||||||
|
|
||||||
|
if 'table_custom_score_profiles' in tables:
|
||||||
|
op.drop_table('table_custom_score_profiles')
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue