Coverage for /usr/local/lib/python3.12/site-packages/prefect/server/database/_migrations/versions/sqlite/2022_06_29_133432_3bd87ecdac38_add_descriptions_to_deployments.py: 82%

11 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-12-05 11:21 +0000

1"""Add descriptions to deployments. 

2 

3Revision ID: 3bd87ecdac38 

4Revises: 42762c37b7bc 

5Create Date: 2022-06-29 13:34:32.879876 

6 

7""" 

8 

9import sqlalchemy as sa 1a

10from alembic import op 1a

11 

12# revision identifiers, used by Alembic. 

13revision = "3bd87ecdac38" 1a

14down_revision = "42762c37b7bc" 1a

15branch_labels = None 1a

16depends_on = None 1a

17 

18 

19def upgrade(): 1a

20 op.add_column("deployment", sa.Column("description", sa.TEXT(), nullable=True)) 1a

21 

22 

23def downgrade(): 1a

24 with op.batch_alter_table("deployment", schema=None) as batch_op: 

25 batch_op.drop_column("description")