d59114c46ac4_change_constrains.py 文件源码

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

项目:fuel-nailgun-extension-iac 作者: openstack 项目源码 文件源码
def upgrade():
    table_prefix = context.config.get_main_option('table_prefix')
    op.create_unique_constraint('_repo_name_unique',
                                table_prefix + 'repos',
                                ['repo_name'])

    op.alter_column(table_prefix + 'repos',
                    'user_key',
                    type_=sa.UnicodeText(),
                    existing_type=sa.String(255))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号