add alembic migration to add 'ended' column to show table

This commit is contained in:
maxDorninger
2025-06-10 21:31:37 +02:00
parent 2f4711f983
commit f2a6b9c822

View File

@@ -0,0 +1,38 @@
"""add 'ended' column to show table
Revision ID: 7508237d5bc2
Revises: 93fb07842385
Create Date: 2025-06-10 21:25:27.871064
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = "7508237d5bc2"
down_revision: Union[str, None] = "93fb07842385"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"show",
sa.Column(
"ended", sa.Boolean(), nullable=False, server_default=sa.text("false")
),
)
# ### end Alembic commands ###
def downgrade() -> None:
"""Downgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("show", "ended")
# ### end Alembic commands ###