fix(schema): distinguish optional ML budget installation from corruption
Build and publish container images / images (push) Successful in 14m28s
Release container images / release (push) Successful in 16s

This commit is contained in:
Anya Tokugawa committed 2026-12-01 07:45:22 +09:00
1 parent 367bfa3a2a
commit cbcb8a24b4
4 files changed
+64 -1

No files matched your search

+3 -1
View File
@@ -21,7 +21,9 @@ func InspectSchema(ctx context.Context, database *sql.DB) (SchemaInspection, err
plans[name] = steps
}
plans["document-store"] = documentBackfillMigrations
components, err := db.InspectSQLiteMigrations(ctx, database, plans)
components, err := db.InspectSQLiteMigrationsWithOptional(ctx, database, plans, map[string][]string{
"machine-learning-budget": {"ml_daily_budget", "ml_budget_receipts"},
})
return SchemaInspection{Coverage: "managed-components-only", Components: components, LegacyAreas: []string{
"core-bootstrap", "campuses/domains/federation", "auth/ACL/user-space", "outbox/notifications/publication-approval",
"City", "tasks/calendars", "periodicals", "search/object-listing/assets/GC",