def downgrade():
"""Downgrade the database to an older revision."""
# commands auto generated by Alembic - please adjust! ###
# op.alter_column('stack_analyses_request', 'requestJson',
# existing_type=postgresql.JSON(astext_type=postgresql.JSON()),
# type_=sa.VARCHAR(length=4096),
# existing_nullable=False)
op.execute('ALTER TABLE stack_analyses_request ALTER COLUMN "requestJson" TYPE varchar(4098) '
'using CAST("requestJson" as varchar(4098))')
# end Alembic commands ###
b19a6deb869d_stack_request_coltype_change.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录