Mantis #7610. Changed AgentPrefs table in PGSQL to use uuid instead of varchar(36), to be consistent with the otehr pgsql tables. Since the first commit on this was yesterday, there's no migration; instead, the version starts at 2. If anyone created the table yesterday, it will be dropped and recreated.
WARNING: untested. (I don't use pg)fsassets
parent
f27ce66877
commit
be68f4852c
|
@ -1,17 +1,18 @@
|
||||||
:VERSION 1
|
:VERSION 2
|
||||||
|
|
||||||
BEGIN;
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
CREATE TABLE `AgentPrefs` (
|
DROP TABLE IF EXISTS "AgentPrefs";
|
||||||
`PrincipalID` CHAR(36) NOT NULL,
|
CREATE TABLE "AgentPrefs" (
|
||||||
`AccessPrefs` CHAR(2) NOT NULL DEFAULT 'M',
|
"PrincipalID" uuid NOT NULL,
|
||||||
`HoverHeight` DOUBLE(30, 27) NOT NULL DEFAULT 0,
|
"AccessPrefs" CHAR(2) NOT NULL DEFAULT 'M',
|
||||||
`Language` CHAR(5) NOT NULL DEFAULT 'en-us',
|
"HoverHeight" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
`LanguageIsPublic` BOOLEAN NOT NULL DEFAULT 1,
|
"Language" CHAR(5) NOT NULL DEFAULT 'en-us',
|
||||||
`PermEveryone` INT(6) NOT NULL DEFAULT 0,
|
"LanguageIsPublic" BOOLEAN NOT NULL DEFAULT true,
|
||||||
`PermGroup` INT(6) NOT NULL DEFAULT 0,
|
"PermEveryone" INT4 NOT NULL DEFAULT 0,
|
||||||
`PermNextOwner` INT(6) NOT NULL DEFAULT 532480,
|
"PermGroup" INT4 NOT NULL DEFAULT 0,
|
||||||
UNIQUE KEY `PrincipalID` (`PrincipalID`),
|
"PermNextOwner" INT4 NOT NULL DEFAULT 532480
|
||||||
PRIMARY KEY(`PrincipalID`));
|
);
|
||||||
|
ALTER TABLE "AgentPrefs" ADD PRIMARY KEY("PrincipalID");
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
Loading…
Reference in New Issue