mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
PGSQL: Convert PassCollision in table prims to bool to avoid a hopeless cast that fails with newer versions of NPGSQL.
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
committed by
UbitUmarov
parent
16f02cb6fd
commit
7cf82a71d6
@@ -1211,3 +1211,17 @@ BEGIN TRANSACTION;
|
||||
ALTER TABLE prims ADD "PhysInertia" TEXT;
|
||||
|
||||
COMMIT;
|
||||
|
||||
|
||||
:VERSION 47 #---- Convert field PassCollisions in table prims to BOOLEAN
|
||||
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
ALTER TABLE "public"."prims" ALTER COLUMN "PassCollisions" DROP DEFAULT;
|
||||
ALTER TABLE "public"."prims"
|
||||
ALTER COLUMN "PassCollisions" TYPE BOOLEAN
|
||||
USING CASE WHEN "PassCollisions" = 0 THEN FALSE
|
||||
WHEN "PassCollisions" = 1 THEN TRUE
|
||||
ELSE NULL
|
||||
END;
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user