19 lines
442 B
Python
19 lines
442 B
Python
from __future__ import annotations
|
|
|
|
import sqlite3
|
|
|
|
MIGRATIONS: tuple[str, ...] = ()
|
|
|
|
|
|
def run_database_migrations(conn: sqlite3.Connection) -> int:
|
|
"""Run pending database migrations.
|
|
|
|
Note: no migrations are currently required because supported databases are
|
|
already expected to use the current schema version.
|
|
"""
|
|
applied = 0
|
|
for sql in MIGRATIONS:
|
|
conn.execute(sql)
|
|
applied += 1
|
|
return applied
|