mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-08-19 00:24:28 +00:00
32 lines
905 B
Python
32 lines
905 B
Python
"""Add option to hide announces from actor
|
|
|
|
Revision ID: 9b404c47970a
|
|
Revises: fadfd359ce78
|
|
Create Date: 2022-12-12 19:26:36.912763+00:00
|
|
|
|
"""
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '9b404c47970a'
|
|
down_revision = 'fadfd359ce78'
|
|
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('are_announces_hidden_from_stream', 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('are_announces_hidden_from_stream')
|
|
|
|
# ### end Alembic commands ###
|