"""add name_en to departments

Revision ID: 0006
Revises: 0005
Create Date: 2026-02-19 09:50:17.913124

補充 migration 0005 遺漏的欄位:
- departments.name_en (英文名稱)
"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '0006'
down_revision: Union[str, None] = '0005'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column('departments', sa.Column('name_en', sa.String(100), nullable=True, comment='英文名稱'))


def downgrade() -> None:
    op.drop_column('departments', 'name_en')
