mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-08-19 00:24:28 +00:00
33 lines
842 B
Python
33 lines
842 B
Python
|
"""Add Actor.is_deleted
|
||
|
|
||
|
Revision ID: 5d3e3f2b9b4e
|
||
|
Revises: 6286262bb466
|
||
|
Create Date: 2022-08-17 17:58:24.813194+00:00
|
||
|
|
||
|
"""
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
from alembic import op
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '5d3e3f2b9b4e'
|
||
|
down_revision = '6286262bb466'
|
||
|
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_deleted', 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_deleted')
|
||
|
|
||
|
# ### end Alembic commands ###
|