def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_unique_constraint('unq_external_id', 'repository', ['provider', 'external_id'])
op.create_unique_constraint('repository_url_key', 'repository', ['url'])
op.create_unique_constraint('repository_name_key', 'repository', ['name'])
op.drop_constraint('unq_repo_name', 'repository', type_='unique')
op.drop_constraint('unq_repo_external_id', 'repository', type_='unique')
op.drop_column('repository', 'owner_name')
# ### end Alembic commands ###
评论列表
文章目录