diff --git a/OpenSim/Data/PGSQL/Resources/RegionStore.migrations b/OpenSim/Data/PGSQL/Resources/RegionStore.migrations index a49c5df143..03d58905c0 100644 --- a/OpenSim/Data/PGSQL/Resources/RegionStore.migrations +++ b/OpenSim/Data/PGSQL/Resources/RegionStore.migrations @@ -1285,4 +1285,11 @@ ALTER TABLE public.regionsettings WHEN "casino" = 1 THEN TRUE ELSE NULL END; -COMMIT; \ No newline at end of file +COMMIT; + +:VERSION 56 #----- Fix the constraints on the spawn points +BEGIN; +ALTER TABLE spawn_points DROP CONSTRAINT spawn_points_pkey; +ALTER TABLE spawn_points ADD CONSTRAINT spawn_points_pkey + PRIMARY KEY ("RegionUUID", "Yaw", "Pitch", "Distance"); +COMMIT;