Compare commits
3 Commits
450e26a758
...
8de025cbcd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8de025cbcd | ||
|
|
51af82bd14 | ||
|
|
983cd1bc0d |
5
sql/039a-switch-certifications-column.sql
Normal file
5
sql/039a-switch-certifications-column.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-- Migration 039a — Add certifications column to switches table
|
||||||
|
-- The core table creation (002) omitted this column; added here before the seed (040).
|
||||||
|
|
||||||
|
ALTER TABLE switches
|
||||||
|
ADD COLUMN IF NOT EXISTS certifications TEXT[] DEFAULT '{}';
|
||||||
@ -112,7 +112,7 @@ ON CONFLICT DO NOTHING;
|
|||||||
-- Arista EOS Config Guide (applies to all Arista)
|
-- Arista EOS Config Guide (applies to all Arista)
|
||||||
INSERT INTO product_documents (switch_id, doc_type, title, source_url, is_official, language)
|
INSERT INTO product_documents (switch_id, doc_type, title, source_url, is_official, language)
|
||||||
SELECT sw.id,
|
SELECT sw.id,
|
||||||
'config_guide', 'Arista EOS User Manual',
|
'manual', 'Arista EOS User Manual',
|
||||||
'https://www.arista.com/en/support/toi/releases',
|
'https://www.arista.com/en/support/toi/releases',
|
||||||
TRUE, 'en'
|
TRUE, 'en'
|
||||||
FROM switches sw JOIN vendors v ON sw.vendor_id = v.id
|
FROM switches sw JOIN vendors v ON sw.vendor_id = v.id
|
||||||
@ -151,7 +151,7 @@ ON CONFLICT DO NOTHING;
|
|||||||
-- Juniper config guide (all QFX)
|
-- Juniper config guide (all QFX)
|
||||||
INSERT INTO product_documents (switch_id, doc_type, title, source_url, is_official, language)
|
INSERT INTO product_documents (switch_id, doc_type, title, source_url, is_official, language)
|
||||||
SELECT sw.id,
|
SELECT sw.id,
|
||||||
'config_guide', 'Juniper QFX Series Config Guide',
|
'manual', 'Juniper QFX Series Config Guide',
|
||||||
'https://www.juniper.net/documentation/product/en_US/qfx5000',
|
'https://www.juniper.net/documentation/product/en_US/qfx5000',
|
||||||
TRUE, 'en'
|
TRUE, 'en'
|
||||||
FROM switches sw JOIN vendors v ON sw.vendor_id = v.id
|
FROM switches sw JOIN vendors v ON sw.vendor_id = v.id
|
||||||
@ -181,7 +181,7 @@ ON CONFLICT DO NOTHING;
|
|||||||
-- NVIDIA ONYX/Cumulus config guide (all NVIDIA)
|
-- NVIDIA ONYX/Cumulus config guide (all NVIDIA)
|
||||||
INSERT INTO product_documents (switch_id, doc_type, title, source_url, is_official, language)
|
INSERT INTO product_documents (switch_id, doc_type, title, source_url, is_official, language)
|
||||||
SELECT sw.id,
|
SELECT sw.id,
|
||||||
'config_guide', 'NVIDIA Cumulus Linux User Guide',
|
'manual', 'NVIDIA Cumulus Linux User Guide',
|
||||||
'https://docs.nvidia.com/networking-ethernet-software/cumulus-linux/',
|
'https://docs.nvidia.com/networking-ethernet-software/cumulus-linux/',
|
||||||
TRUE, 'en'
|
TRUE, 'en'
|
||||||
FROM switches sw JOIN vendors v ON sw.vendor_id = v.id
|
FROM switches sw JOIN vendors v ON sw.vendor_id = v.id
|
||||||
|
|||||||
17
sql/042-expand-verification-method.sql
Normal file
17
sql/042-expand-verification-method.sql
Normal 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'
|
||||||
|
));
|
||||||
Loading…
x
Reference in New Issue
Block a user