This commit is contained in:
Jake Kasper
2025-09-05 10:45:01 -04:00
parent e691172a9c
commit e5946157f0
4 changed files with 195 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
-- 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;