mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
35 lines
973 B
Python
35 lines
973 B
Python
"""add meeting is_active
|
|
|
|
Revision ID: b0e5f7876032
|
|
Revises: 6ea59639f30e
|
|
Create Date: 2025-01-28 10:06:50.446233
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'b0e5f7876032'
|
|
down_revision: Union[str, None] = '6ea59639f30e'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('meeting', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('is_active', sa.Boolean(), server_default=sa.text('1'), nullable=False))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('meeting', schema=None) as batch_op:
|
|
batch_op.drop_column('is_active')
|
|
|
|
# ### end Alembic commands ###
|