split migrations
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user