b19a6deb869d_stack_request_coltype_change.py 文件源码

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

项目:fabric8-analytics-server 作者: fabric8-analytics 项目源码 文件源码
def upgrade():
    """Upgrade the database to a newer revision."""
    # commands auto generated by Alembic - please adjust! ###
    # op.alter_column('stack_analyses_request', 'requestJson',
    #            existing_type=sa.VARCHAR(length=4096),
    #            type_=postgresql.JSON(astext_type=postgresql.JSON()),
    #            existing_nullable=False)
    op.execute('ALTER TABLE stack_analyses_request ALTER COLUMN "requestJson" TYPE json '
               'using CAST("requestJson" as json)')
    # end Alembic commands ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号