* Added PostGreSQL support * Added MySQL/MySQLXGroupData.cs * PostgreSQL data access implementation * PostgreSQL dll binarie and RegionStore.migrations * Migrations Scripts from MSSQL to POSTGRES * Postgres SQL Type fixes * Postgres SQL Connection string * Data type issues * more fixes * tests and +tests * UUID x string - FIGHT! * Fixed PG types to internal csharp types * More data type fix (PostgreSQL fields are case sensitive) :( * more field case sensitive fixes * changed the migration files to be case sensitive for fields. * fixed fields case * finished converting, now search for hidden bugs. * some more fixes * bool type fixed * more case fixes; * creatorID case fixed * case fields fixed * fixed default now() for TMStamp fields with don't allow nulls. * fix case sensitve for Region name and Estate name * fixed case for names for search * fix class name Error * Bug fixed on select and migrations * Un-Reverting my change due to Postgres issue with the ILIKE function * Fixed some issued for Diva Distro * Fixes for integration with Diva Distro * Added System.Core to prebuild.xml for PG project * Configured to make DIff for Push to OpenSim Project * Diffs only to PostgreSQL mods.
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
:VERSION 1
|
|
|
|
CREATE TABLE UserAccounts (
|
|
"PrincipalID" uuid NOT NULL Primary key,
|
|
"ScopeID" uuid NOT NULL,
|
|
"FirstName" varchar(64) NOT NULL,
|
|
"LastName" varchar(64) NOT NULL,
|
|
"Email" varchar(64) NULL,
|
|
"ServiceURLs" text NULL,
|
|
"Created" int default NULL
|
|
);
|
|
|
|
|
|
:VERSION 2
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
INSERT INTO UserAccounts ("PrincipalID", "ScopeID", "FirstName", "LastName", "Email", "ServiceURLs", "Created")
|
|
SELECT UUID AS "PrincipalID", '00000000-0000-0000-0000-000000000000' AS "ScopeID",
|
|
username AS "FirstName",
|
|
lastname AS "LastName",
|
|
email as "Email", (
|
|
'AssetServerURI=' +
|
|
userAssetURI + ' InventoryServerURI=' + userInventoryURI + ' GatewayURI= HomeURI=') AS "ServiceURLs",
|
|
created as "Created" FROM users;
|
|
|
|
COMMIT;
|
|
|
|
:VERSION 3
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
CREATE UNIQUE INDEX "PrincipalID" ON UserAccounts("PrincipalID");
|
|
CREATE INDEX "Email" ON UserAccounts("Email");
|
|
CREATE INDEX "FirstName" ON UserAccounts("FirstName");
|
|
CREATE INDEX "LastName" ON UserAccounts("LastName");
|
|
CREATE INDEX Name ON UserAccounts("FirstName","LastName");
|
|
|
|
COMMIT;
|
|
|
|
:VERSION 4
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
ALTER TABLE UserAccounts ADD "UserLevel" integer NOT NULL DEFAULT 0;
|
|
ALTER TABLE UserAccounts ADD "UserFlags" integer NOT NULL DEFAULT 0;
|
|
ALTER TABLE UserAccounts ADD "UserTitle" varchar(64) NOT NULL DEFAULT '';
|
|
|
|
COMMIT;
|
|
|
|
|