def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('rule', sa.Column('config', postgresql.JSONB(), autoincrement=False, nullable=True))
op.add_column('rule', sa.Column('type', sa.VARCHAR(), autoincrement=False, nullable=False))
op.add_column('rule', sa.Column('action', postgresql.ENUM(u'added', u'removed', u'both', name='rule_actions'), autoincrement=False, nullable=False))
op.drop_column('rule', 'description')
op.drop_column('rule', 'conditions')
### end Alembic commands ###
b50c705fea80_migrate_to_new_rules_architecture.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录