Merge "Fix compatibility with sqlalchemy 0.9.7"

This commit is contained in:
Jenkins 2015-08-25 15:36:55 +00:00 committed by Gerrit Code Review
commit ec9037e26e

View File

@ -83,7 +83,7 @@ def create_share_instances_table(connection):
# Remove columns moved to 'share_instances' table
with op.batch_alter_table("shares") as batch_op:
for fk in shares_table.foreign_key_constraints:
for fk in shares_table.foreign_keys:
batch_op.drop_constraint(fk.name, type_='foreignkey')
batch_op.drop_column('host')