Coverage for opt/mealie/lib/python3.12/site-packages/mealie/alembic/versions/2022-06-15-21.05.34_f30cf048c228_add_new_webhook_fields.py: 83%

12 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-11-25 17:29 +0000

1"""add new webhook fields 

2 

3 

4Revision ID: f30cf048c228 

5Revises: ab0bae02578f 

6Create Date: 2022-06-15 21:05:34.851857 

7 

8""" 

9 

10import sqlalchemy as sa 1a

11 

12from alembic import op 1a

13 

14# revision identifiers, used by Alembic. 

15revision = "f30cf048c228" 1a

16down_revision = "ab0bae02578f" 1a

17branch_labels: str | tuple[str, ...] | None = None 1a

18depends_on: str | tuple[str, ...] | None = None 1a

19 

20 

21def upgrade(): 1a

22 # ### commands auto generated by Alembic - please adjust! ### 

23 op.add_column("webhook_urls", sa.Column("webhook_type", sa.String(), nullable=True)) 1a

24 op.add_column("webhook_urls", sa.Column("scheduled_time", sa.Time(), nullable=True)) 1a

25 # ### end Alembic commands ### 

26 

27 

28def downgrade(): 1a

29 # ### commands auto generated by Alembic - please adjust! ### 

30 op.drop_column("webhook_urls", "scheduled_time") 

31 op.drop_column("webhook_urls", "webhook_type") 

32 # ### end Alembic commands ###