feat(storage): add native MySQL namespace and identity pilots

Add resumable checked migrations and explicit schema administration commands. Port ML budgets, namespaces, identity and group persistence with three-backend contracts. Keep MySQL unavailable as the full application backend.
This commit is contained in:
Anya Tokugawa committed 2026-11-30 23:03:24 +09:00
1 parent 0c7897d695
commit 6a67fd9afe
40 files changed
+3087 -94

No files matched your search

@@ -265,6 +265,13 @@ func TestGeneralGroupBackendCancellationAndErrorBoundary(t *testing.T) {
t.Fatalf("unsafe PostgreSQL error: %v", err)
}
}
if f.s.sqlBackend == storeMySQL {
f.exec(`ALTER TABLE groups ADD CONSTRAINT synthetic_title_check CHECK(display_name!='private-test-title')`)
_, err := f.s.CreateGroup(f.domains["a"], "alice", "rejected", "private-test-title", "", "public")
if err == nil || strings.Contains(err.Error(), "private-test-title") {
t.Fatalf("unsafe MySQL error: %v", err)
}
}
})
}