flyway
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user