fix: expand compatibility.verification_method CHECK to include vendor_compat + spec_match

This commit is contained in:
Rene Fichtmueller 2026-04-20 23:23:23 +02:00
parent 4f277df703
commit 0a60d821fb

View File

@ -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'
));