Files
turftracker/database/migrations/V13__watering_point_equipment.sql
Jake Kasper e5946157f0 sdgsdgf
2025-09-05 10:45:01 -04:00

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;