This commit is contained in:
Jake Kasper
2025-09-02 08:21:56 -05:00
parent fc3f2ac368
commit 7bb45b64eb
2 changed files with 6 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
-- Flyway V2: Ensure weather_data upsert works by providing a unique index
-- This migration assumes V1 baseline corresponds to the current init.sql schema
CREATE UNIQUE INDEX IF NOT EXISTS ux_weather_data_property_date
ON weather_data(property_id, date);