mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Fernando Oliveira's Postgress SQL Server Data Connector as a single commit.
* 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.
This commit is contained in:
committed by
fernando
parent
2eade55471
commit
ff8a768258
83
OpenSim/Data/PGSQL/Resources/UserProfiles.migrations
Normal file
83
OpenSim/Data/PGSQL/Resources/UserProfiles.migrations
Normal file
@@ -0,0 +1,83 @@
|
||||
:VERSION 1 # -------------------------------
|
||||
|
||||
begin;
|
||||
|
||||
CREATE TABLE classifieds (
|
||||
"classifieduuid" char(36) NOT NULL,
|
||||
"creatoruuid" char(36) NOT NULL,
|
||||
"creationdate" integer NOT NULL,
|
||||
"expirationdate" integer NOT NULL,
|
||||
"category" varchar(20) NOT NULL,
|
||||
"name" varchar(255) NOT NULL,
|
||||
"description" text NOT NULL,
|
||||
"parceluuid" char(36) NOT NULL,
|
||||
"parentestate" integer NOT NULL,
|
||||
"snapshotuuid" char(36) NOT NULL,
|
||||
"simname" varchar(255) NOT NULL,
|
||||
"posglobal" varchar(255) NOT NULL,
|
||||
"parcelname" varchar(255) NOT NULL,
|
||||
"classifiedflags" integer NOT NULL,
|
||||
"priceforlisting" integer NOT NULL,
|
||||
constraint classifiedspk PRIMARY KEY ("classifieduuid")
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE usernotes (
|
||||
"useruuid" varchar(36) NOT NULL,
|
||||
"targetuuid" varchar(36) NOT NULL,
|
||||
"notes" text NOT NULL,
|
||||
constraint usernoteuk UNIQUE ("useruuid","targetuuid")
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE userpicks (
|
||||
"pickuuid" varchar(36) NOT NULL,
|
||||
"creatoruuid" varchar(36) NOT NULL,
|
||||
"toppick" boolean NOT NULL,
|
||||
"parceluuid" varchar(36) NOT NULL,
|
||||
"name" varchar(255) NOT NULL,
|
||||
"description" text NOT NULL,
|
||||
"snapshotuuid" varchar(36) NOT NULL,
|
||||
"user" varchar(255) NOT NULL,
|
||||
"originalname" varchar(255) NOT NULL,
|
||||
"simname" varchar(255) NOT NULL,
|
||||
"posglobal" varchar(255) NOT NULL,
|
||||
"sortorder" integer NOT NULL,
|
||||
"enabled" boolean NOT NULL,
|
||||
PRIMARY KEY ("pickuuid")
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE userprofile (
|
||||
"useruuid" varchar(36) NOT NULL,
|
||||
"profilePartner" varchar(36) NOT NULL,
|
||||
"profileAllowPublish" bytea NOT NULL,
|
||||
"profileMaturePublish" bytea NOT NULL,
|
||||
"profileURL" varchar(255) NOT NULL,
|
||||
"profileWantToMask" integer NOT NULL,
|
||||
"profileWantToText" text NOT NULL,
|
||||
"profileSkillsMask" integer NOT NULL,
|
||||
"profileSkillsText" text NOT NULL,
|
||||
"profileLanguages" text NOT NULL,
|
||||
"profileImage" varchar(36) NOT NULL,
|
||||
"profileAboutText" text NOT NULL,
|
||||
"profileFirstImage" varchar(36) NOT NULL,
|
||||
"profileFirstText" text NOT NULL,
|
||||
PRIMARY KEY ("useruuid")
|
||||
);
|
||||
|
||||
commit;
|
||||
|
||||
:VERSION 2 # -------------------------------
|
||||
|
||||
begin;
|
||||
CREATE TABLE userdata (
|
||||
"UserId" char(36) NOT NULL,
|
||||
"TagId" varchar(64) NOT NULL,
|
||||
"DataKey" varchar(255),
|
||||
"DataVal" varchar(255),
|
||||
PRIMARY KEY ("UserId","TagId")
|
||||
);
|
||||
|
||||
commit;
|
||||
|
||||
Reference in New Issue
Block a user