mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-06 22:54:42 +00:00
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: fc5815a9d482
|
||
|
Revises: 7eaec0e12079
|
||
|
Create Date: 2024-06-25 16:05:40.787119
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'fc5815a9d482'
|
||
|
down_revision = '7eaec0e12079'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
with op.batch_alter_table('future_task', schema=None) as batch_op:
|
||
|
batch_op.add_column(sa.Column('queued_to_run_at_in_seconds', sa.Integer(), nullable=True))
|
||
|
batch_op.create_index(batch_op.f('ix_future_task_queued_to_run_at_in_seconds'), ['queued_to_run_at_in_seconds'], unique=False)
|
||
|
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
with op.batch_alter_table('future_task', schema=None) as batch_op:
|
||
|
batch_op.drop_index(batch_op.f('ix_future_task_queued_to_run_at_in_seconds'))
|
||
|
batch_op.drop_column('queued_to_run_at_in_seconds')
|
||
|
|
||
|
# ### end Alembic commands ###
|