feat: 0014 schema — embeddings FK CASCADE (deferred or applied) + memories.event_id column (T109)

This commit is contained in:
Joseph Doherty
2026-04-27 05:00:57 -04:00
parent 3f1a284acb
commit 1f8b4d2078
4 changed files with 91 additions and 4 deletions
+2 -2
View File
@@ -324,11 +324,11 @@ def test_get_scene_returns_none_for_missing(tmp_path):
assert active_scene(conn, "chat_missing") is None
def test_schema_version_after_migration_is_13(tmp_path):
def test_schema_version_after_migration_is_14(tmp_path):
db = tmp_path / "t.db"
apply_migrations(db)
with open_db(db) as conn:
row = conn.execute(
"SELECT value FROM meta WHERE key = 'schema_version'"
).fetchone()
assert int(row[0]) == 13
assert int(row[0]) == 14