def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('schedule_info',
sa.Column('id', sa.Integer(), autoincrement=False, nullable=False),
sa.Column('last_changed_at', sa.DateTime(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.create_table('schedule_meta',
sa.Column('parent_id', sa.Integer(), nullable=False),
sa.Column('last_run_at', sa.DateTime(), nullable=True),
sa.Column('total_run_count', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['parent_id'], ['schedule_task.id'], ),
sa.PrimaryKeyConstraint('parent_id')
)
with op.batch_alter_table('schedule_task') as batch_op:
batch_op.drop_column('total_run_count')
batch_op.drop_column('last_run_at')
# ### end Alembic commands ###
评论列表
文章目录