Coverage for downtify/db/migrations/versions/0001_baseline.py: 100%
7 statements
« prev ^ index » next coverage.py v7.17.4, created at 2026-11-21 22:18 +0000
« prev ^ index » next coverage.py v7.17.4, created at 2026-11-21 22:18 +0000
1"""Baseline schema: every table, index and sequence as of migration 0001."""
3from __future__ import annotations
5from downtify.db.core import Connection
6from downtify.db.migrations.schema import (
7 activity,
8 auth,
9 doctor,
10 library_a,
11 library_b,
12 monitor,
13)
16def up(conn: Connection) -> None:
17 statements = (
18 auth.DDL
19 + activity.DDL
20 + doctor.DDL
21 + monitor.DDL
22 + library_a.DDL
23 + library_b.DDL
24 )
25 for stmt in statements:
26 conn.execute(stmt)