31 lines
764 B
Python
31 lines
764 B
Python
"""add active
|
|
|
|
Revision ID: 9d20a4ff1eab
|
|
Revises:
|
|
Create Date: 2023-10-29 12:09:17.958616
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '9d20a4ff1eab'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('queue', sa.Column('active', sa.Boolean(), nullable=True))
|
|
op.add_column('queueuser', sa.Column('active', sa.Boolean(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('queueuser', 'active')
|
|
op.drop_column('queue', 'active')
|
|
# ### end Alembic commands ###
|