b50c705fea80_migrate_to_new_rules_architecture.py 文件源码

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

项目:doorman 作者: mwielgoszewski 项目源码 文件源码
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 ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号