def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_constraint('podcast_feed_key', 'podcast', type_='unique')
op.drop_constraint('podcast_name_key', 'podcast', type_='unique')
op.add_column('tag', sa.Column('name', sa.String(), nullable=False))
op.create_index(op.f('ix_tag_name'), 'tag', ['name'], unique=True)
### end Alembic commands ###
评论列表
文章目录