def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.create_table('rule',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('type', sa.String(), nullable=False),
sa.Column('name', sa.String(), nullable=False),
sa.Column('action', sa.Enum('added', 'removed', 'both', name='rule_actions'), nullable=False),
sa.Column('alerters', postgresql.ARRAY(sa.String()), nullable=False),
sa.Column('config', postgresql.JSONB(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
### end Alembic commands ###
评论列表
文章目录