Coverage for opt/mealie/lib/python3.12/site-packages/mealie/alembic/versions/2024-10-20-09.47.46_3897397b4631_add_summary_to_recipe_instructions.py: 83%
12 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 14:03 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 14:03 +0000
1"""'Add summary to recipe instructions'
3Revision ID: 3897397b4631
4Revises: 86054b40fd06
5Create Date: 2024-10-20 09:47:46.844436
7"""
9import sqlalchemy as sa 1a
10from alembic import op 1a
12# revision identifiers, used by Alembic.
13revision = "3897397b4631" 1a
14down_revision: str | None = "86054b40fd06" 1a
15branch_labels: str | tuple[str, ...] | None = None 1a
16depends_on: str | tuple[str, ...] | None = None 1a
19def upgrade(): 1a
20 # ### commands auto generated by Alembic - please adjust! ###
21 with op.batch_alter_table("recipe_instructions", schema=None) as batch_op: 1a
22 batch_op.add_column(sa.Column("summary", sa.String(), nullable=True)) 1a
24 # ### end Alembic commands ###
27def downgrade(): 1a
28 # ### commands auto generated by Alembic - please adjust! ###
29 with op.batch_alter_table("recipe_instructions", schema=None) as batch_op:
30 batch_op.drop_column("summary")
32 # ### end Alembic commands ###