fix bug on index application

This commit is contained in:
Victor Shyba 2020-12-08 18:34:40 -03:00
parent 4592e21424
commit 94d76cb13d

View file

@ -107,7 +107,8 @@ def check_version_and_create_tables():
for table in metadata.sorted_tables:
disable_trigger_and_constraints(table.name)
if ctx.is_postgres:
ctx.execute(text(pg_add_account_address_constraints_and_indexes))
for statement in pg_add_account_address_constraints_and_indexes:
ctx.execute(text(statement))
def disable_trigger_and_constraints(table_name):