| 1 | """Add case notification column to table |
| 2 | |
| 3 | Revision ID: b453170bbefc |
| 4 | Revises: 21a945c2982b |
| 5 | Create Date: 2024-12-04 15:27:29.341675 |
| 6 | |
| 7 | """ |
| 8 | from typing import Sequence |
| 9 | from typing import Union |
| 10 | |
| 11 | import sqlalchemy as sa |
| 12 | |
| 13 | from alembic import op |
| 14 | |
| 15 | # revision identifiers, used by Alembic. |
| 16 | revision: str = "b453170bbefc" |
| 17 | down_revision: Union[str, None] = "21a945c2982b" |
| 18 | branch_labels: Union[str, Sequence[str], None] = None |
| 19 | depends_on: Union[str, Sequence[str], None] = None |
| 20 | |
| 21 | |
| 22 | def upgrade() -> None: |
| 23 | # ### commands auto generated by Alembic - please adjust! ### |
| 24 | op.add_column("incident_management_case", sa.Column("notification_invoked_number", sa.Integer(), nullable=True)) |
| 25 | # ### end Alembic commands ### |
| 26 | |
| 27 | |
| 28 | def downgrade() -> None: |
| 29 | # ### commands auto generated by Alembic - please adjust! ### |
| 30 | op.drop_column("incident_management_case", "notification_invoked_number") |
| 31 | # ### end Alembic commands ### |