main
py 38 lines 1.13 KB
Raw
1 """Add incident management notifications table
2
3 Revision ID: aae5e3008a35
4 Revises: 7f846a07c2b8
5 Create Date: 2024-08-06 11:09:40.763589
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 = "aae5e3008a35"
17 down_revision: Union[str, None] = "7f846a07c2b8"
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.create_table(
25 "incident_management_notification",
26 sa.Column("id", sa.Integer(), nullable=False),
27 sa.Column("customer_code", sa.String(length=50), nullable=False),
28 sa.Column("shuffle_workflow_id", sa.String(length=1000), nullable=False),
29 sa.Column("enabled", sa.Boolean(), nullable=False),
30 sa.PrimaryKeyConstraint("id"),
31 )
32 # ### end Alembic commands ###
33
34
35 def downgrade() -> None:
36 # ### commands auto generated by Alembic - please adjust! ###
37 op.drop_table("incident_management_notification")
38 # ### end Alembic commands ###