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 ###
b19a6deb869d_stack_request_coltype_change.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录