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