From 0a60d821fbaff8827b73858da35eba3cae1747e6 Mon Sep 17 00:00:00 2001 From: Rene Fichtmueller Date: Mon, 20 Apr 2026 23:23:23 +0200 Subject: [PATCH] fix: expand compatibility.verification_method CHECK to include vendor_compat + spec_match --- sql/042-expand-verification-method.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sql/042-expand-verification-method.sql diff --git a/sql/042-expand-verification-method.sql b/sql/042-expand-verification-method.sql new file mode 100644 index 0000000..821f1e1 --- /dev/null +++ b/sql/042-expand-verification-method.sql @@ -0,0 +1,17 @@ +-- Migration 042 — Expand compatibility.verification_method CHECK constraint +-- Adds vendor_compat (Flexoptix search API match) and spec_match (form-factor inference) +-- to the existing set of allowed verification methods. + +ALTER TABLE compatibility + DROP CONSTRAINT IF EXISTS compatibility_verification_method_check; + +ALTER TABLE compatibility + ADD CONSTRAINT compatibility_verification_method_check + CHECK (verification_method IN ( + 'tested', + 'vendor_matrix', + 'vendor_compat', + 'spec_match', + 'datasheet', + 'community' + ));