8 lines
353 B
SQL
8 lines
353 B
SQL
-- Link watering plan points to saved equipment and store name snapshot
|
|
ALTER TABLE watering_plan_points
|
|
ADD COLUMN IF NOT EXISTS equipment_id INTEGER REFERENCES user_equipment(id) ON DELETE SET NULL,
|
|
ADD COLUMN IF NOT EXISTS equipment_name VARCHAR(255);
|
|
|
|
SELECT 'Added equipment_id and equipment_name to watering_plan_points' as migration_status;
|
|
|