29 lines
750 B
Python
29 lines
750 B
Python
"""Curation output language setting."""
|
|
|
|
from collections.abc import Sequence
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision: str = "20260812_0015"
|
|
down_revision: str | Sequence[str] | None = "20260808_0014"
|
|
branch_labels: str | Sequence[str] | None = None
|
|
depends_on: str | Sequence[str] | None = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table("curation_settings") as batch:
|
|
batch.add_column(
|
|
sa.Column(
|
|
"output_language",
|
|
sa.String(length=16),
|
|
nullable=False,
|
|
server_default="auto",
|
|
)
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table("curation_settings") as batch:
|
|
batch.drop_column("output_language")
|