Coverage for datakiln/metadata/migrations/env.py: 0%

5 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-16 23:23 +0000

1""" 

2Environment of the migrations, which run on the connection they are given. 

3""" 

4# pylint: disable=no-member 

5from alembic import context 

6 

7from datakiln.metadata.table import Base 

8 

9 

10context.configure( 

11 connection=context.config.attributes["connection"], 

12 target_metadata=Base.metadata, 

13 version_table_schema=Base.metadata.schema, 

14) 

15 

16with context.begin_transaction(): 

17 context.run_migrations()