26 lines
568 B
Python
26 lines
568 B
Python
"""add an optional date of birth to the doctor master
|
|
|
|
Revision ID: n4d0f6b2c9e1
|
|
Revises: m3c9e5f1b8d0
|
|
Create Date: 2026-10-24
|
|
"""
|
|
|
|
from collections.abc import Sequence
|
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
revision: str = "n4d0f6b2c9e1"
|
|
down_revision: str | None = "m3c9e5f1b8d0"
|
|
branch_labels: str | Sequence[str] | None = None
|
|
depends_on: str | Sequence[str] | None = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column("doctor", sa.Column("date_of_birth", sa.Date(), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("doctor", "date_of_birth")
|