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

9 statements  

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

1"""Rename block data table 

2 

3Revision ID: 4c4a6a138053 

4Revises: 

5Create Date: 2022-02-19 21:02:55.886313 

6 

7""" 

8 

9from alembic import op 1a

10 

11# revision identifiers, used by Alembic. 

12revision = "4c4a6a138053" 1a

13down_revision = "28ae48128c75" 1a

14branch_labels = None 1a

15depends_on = None 1a

16 

17 

18def upgrade(): 1a

19 op.execute( 1a

20 """ 

21 ALTER TABLE block_data 

22 RENAME TO block; 

23 """ 

24 ) 

25 

26 

27def downgrade(): 1a

28 op.execute( 

29 """ 

30 ALTER TABLE block 

31 RENAME TO block_data; 

32 """ 

33 )