fix(schema): distinguish optional ML budget installation from corruption
This commit is contained in:
1 parent
367bfa3a2a
commit
cbcb8a24b4
4 files changed
+64
-1
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user