f7c8c10f5aea_rethink_authors.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:zeus 作者: getsentry 项目源码 文件源码
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 ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号