mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
PGSQL migrations for IM_Store, UserProfiles, removal of casting exception for UserProfiles and adding double precision to PGSQL Manager
PGSQL migrations for IM_Store, UserProfiles, removal of casting exception for UserProfiles and adding double precision to PGSQL Manager. Fixes the Offline IM to Email toggle and prepares for fixing Offline IM. Signed-off-by: Oren Hurvitz <orenh@kitely.com>
This commit is contained in:
committed by
Oren Hurvitz
parent
e979a7e7f0
commit
1de8c3570d
@@ -24,3 +24,22 @@ DELETE FROM `migrations` WHERE name='diva_im_Store';
|
||||
*/
|
||||
|
||||
COMMIT;
|
||||
|
||||
:VERSION 3 # --------------------------
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- dropping the table here as there most likely is only one record in the table at the time of migration
|
||||
|
||||
DROP TABLE IF EXISTS "public"."im_offline";
|
||||
CREATE TABLE "public"."im_offline" (
|
||||
"ID" serial,
|
||||
"PrincipalID" uuid NOT NULL,
|
||||
"Message" text NOT NULL COLLATE "default",
|
||||
"TMStamp" timestamp(6) NOT NULL DEFAULT clock_timestamp(),
|
||||
"FromID" uuid NOT NULL
|
||||
)
|
||||
WITH (OIDS=FALSE);
|
||||
ALTER TABLE "public"."im_offline" ADD PRIMARY KEY ("ID","PrincipalID","FromID") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user