4 lines
283 B
SQL
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;
|