feat: implement legacy history migration (closes #24)

This commit is contained in:
xavierk
2026-09-01 23:09:05 +05:30
parent 6a1841c447
commit d005412c0d
5 changed files with 861 additions and 0 deletions
+9
View File
@@ -166,6 +166,15 @@ def _create_schema(conn: sqlite3.Connection):
""")
# Metadata table for store state (e.g., legacy import marker)
conn.execute("""
CREATE TABLE IF NOT EXISTS store_metadata (
key TEXT PRIMARY KEY,
value TEXT NOT NULL
)
""")
def _apply_migrations(conn: sqlite3.Connection, current_version: int):
"""Apply forward-only migrations from current_version to SCHEMA_VERSION."""
# Future migrations will go here