feat(registry): add workspace-scoped artifact metadata

This commit is contained in:
bsodfather committed 2026-08-27 02:18:09 +03:00
1 parent 497e1b740f
commit 2eb185b14a
29 files changed
+2264 -181

No files matched your search

@@ -35,6 +35,8 @@ pub(super) const OWNED_RELATIONS: &[&str] = &[
"approval_requests",
"invocation_logs",
"usage_rollups",
"artifact_blobs",
"artifact_sources",
];
const REQUIRED_COLUMNS: &[(&str, &[&str])] = &[
@@ -615,6 +617,13 @@ pub(super) async fn validate_schema_fingerprint(
} else {
super::schema_guard_v11::validate_v11_onboarding_product_events(connection).await?;
}
if current_version < 12 {
if !super::schema_guard_v12::validate_v12_absent(connection).await? {
return Err(schema_error(current_version));
}
} else {
super::schema_guard_v12::validate_v12_artifact_metadata(connection).await?;
}
Ok(())
}