33 lines
856 B
Python
33 lines
856 B
Python
"""Add is_blocked attribute on actors
|
|
|
|
Revision ID: 50d26a370a65
|
|
Revises: f5717d82b3ff
|
|
Create Date: 2022-07-31 08:15:27.226340+00:00
|
|
|
|
"""
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '50d26a370a65'
|
|
down_revision = 'f5717d82b3ff'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('actor', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('is_blocked', sa.Boolean(), server_default='0', nullable=False))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('actor', schema=None) as batch_op:
|
|
batch_op.drop_column('is_blocked')
|
|
|
|
# ### end Alembic commands ###
|