##// END OF EJS Templates
db: fix migration after sqlalchemy upgrade
marcink -
r1966:28cc3daf default
parent child Browse files
Show More
@@ -46,6 +46,7 b' def upgrade(migrate_engine):'
46 if repo_name_idx in repo_name_indexes:
46 if repo_name_idx in repo_name_indexes:
47 batch_op.drop_index(repo_name_idx)
47 batch_op.drop_index(repo_name_idx)
48 for name in repo_name_constraints:
48 for name in repo_name_constraints:
49 if name: # sqlite can have this empty, then it raises an error
49 batch_op.drop_constraint(name, type_='unique')
50 batch_op.drop_constraint(name, type_='unique')
50
51
51 batch_op.alter_column(repo_name_column.name, type_=Text)
52 batch_op.alter_column(repo_name_column.name, type_=Text)
General Comments 0
You need to be logged in to leave comments. Login now