def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'source', type_='foreignkey')
op.drop_index(op.f('ix_source_author_id'), table_name='source')
op.drop_column('source', 'author_id')
op.add_column(
'build', sa.Column('author_id', postgresql.UUID(), autoincrement=False, nullable=True)
)
op.create_foreign_key('build_author_id_fkey', 'build', 'author', ['author_id'], ['id'])
op.create_index('ix_build_author_id', 'build', ['author_id'], unique=False)
# ### end Alembic commands ###
评论列表
文章目录