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

9 statements  

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

1"""Removes DebugPrintNotification block type 

2 

3Revision ID: 061c7e518b40 

4Revises: e2dae764a603 

5Create Date: 2022-07-07 11:12:08.749298 

6 

7""" 

8 

9from alembic import op 1a

10 

11# revision identifiers, used by Alembic. 

12revision = "061c7e518b40" 1a

13down_revision = "e2dae764a603" 1a

14branch_labels = None 1a

15depends_on = None 1a

16 

17 

18def upgrade(): 1a

19 op.execute( 1a

20 """ 

21 DELETE FROM block_type WHERE name = 'Debug Print Notification' 

22 """ 

23 ) 

24 

25 

26def downgrade(): 1a

27 # Purely a data migration for 2.0b8. No downgrade necessary. 

28 pass