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