Files
website-secure/scripts/add-customer-supplied.sql
T
2026-06-01 15:36:16 +01:00

4 lines
283 B
SQL

-- Add customer_supplied boolean and customer_id FK to components table
ALTER TABLE components ADD COLUMN IF NOT EXISTS customer_supplied BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE components ADD COLUMN IF NOT EXISTS customer_id INTEGER REFERENCES customers(id) ON DELETE SET NULL;