aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorDiva Canto2015-06-14 09:30:55 -0700
committerDiva Canto2015-06-14 09:30:55 -0700
commitbe68f4852ce0f754e425f6e158df0f7c7fcb33f5 (patch)
treee61294422eab9fe779dd56e6f77417898578a111 /OpenSim/Data
parentSquooshed a warning that could result in a runtime null pointer exception. It... (diff)
downloadopensim-SC-be68f4852ce0f754e425f6e158df0f7c7fcb33f5.zip
opensim-SC-be68f4852ce0f754e425f6e158df0f7c7fcb33f5.tar.gz
opensim-SC-be68f4852ce0f754e425f6e158df0f7c7fcb33f5.tar.bz2
opensim-SC-be68f4852ce0f754e425f6e158df0f7c7fcb33f5.tar.xz
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)
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/PGSQL/Resources/AgentPrefs.migrations27
1 files changed, 14 insertions, 13 deletions
diff --git a/OpenSim/Data/PGSQL/Resources/AgentPrefs.migrations b/OpenSim/Data/PGSQL/Resources/AgentPrefs.migrations
index 2615ca2..6154719 100644
--- a/OpenSim/Data/PGSQL/Resources/AgentPrefs.migrations
+++ b/OpenSim/Data/PGSQL/Resources/AgentPrefs.migrations
@@ -1,17 +1,18 @@
1:VERSION 1 1:VERSION 2
2 2
3BEGIN; 3BEGIN TRANSACTION;
4 4
5CREATE TABLE `AgentPrefs` ( 5DROP TABLE IF EXISTS "AgentPrefs";
6 `PrincipalID` CHAR(36) NOT NULL, 6CREATE TABLE "AgentPrefs" (
7 `AccessPrefs` CHAR(2) NOT NULL DEFAULT 'M', 7 "PrincipalID" uuid NOT NULL,
8 `HoverHeight` DOUBLE(30, 27) NOT NULL DEFAULT 0, 8 "AccessPrefs" CHAR(2) NOT NULL DEFAULT 'M',
9 `Language` CHAR(5) NOT NULL DEFAULT 'en-us', 9 "HoverHeight" DOUBLE PRECISION NOT NULL DEFAULT 0,
10 `LanguageIsPublic` BOOLEAN NOT NULL DEFAULT 1, 10 "Language" CHAR(5) NOT NULL DEFAULT 'en-us',
11 `PermEveryone` INT(6) NOT NULL DEFAULT 0, 11 "LanguageIsPublic" BOOLEAN NOT NULL DEFAULT true,
12 `PermGroup` INT(6) NOT NULL DEFAULT 0, 12 "PermEveryone" INT4 NOT NULL DEFAULT 0,
13 `PermNextOwner` INT(6) NOT NULL DEFAULT 532480, 13 "PermGroup" INT4 NOT NULL DEFAULT 0,
14 UNIQUE KEY `PrincipalID` (`PrincipalID`), 14 "PermNextOwner" INT4 NOT NULL DEFAULT 532480
15 PRIMARY KEY(`PrincipalID`)); 15 );
16 ALTER TABLE "AgentPrefs" ADD PRIMARY KEY("PrincipalID");
16 17
17COMMIT; \ No newline at end of file 18COMMIT; \ No newline at end of file