This commit is contained in:
Shubhankar45
2026-10-27 12:03:31 +00:00
parent 2ed3945b5d
commit 4e5e95775d
104 changed files with 5210 additions and 606 deletions
@@ -0,0 +1,25 @@
"""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")