mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user