Fix wrong primary key on telehub spawn points. With the RegionUUID being created as a unique primary key only one spawn point could be created. Replaced the primary key with one using multiple columns to guarantee that each spawn point occupies a unique space in the region.

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
BlueWall
2024-06-21 12:03:01 -04:00
committed by UbitUmarov
parent ebcc0f0077
commit 6c857b7ff9

View File

@@ -1285,4 +1285,11 @@ ALTER TABLE public.regionsettings
WHEN "casino" = 1 THEN TRUE
ELSE NULL
END;
COMMIT;
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;