mirror of
https://github.com/opensim/opensim.git
synced 2026-05-25 03:05:41 +08:00
* 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.
95 lines
2.9 KiB
Plaintext
95 lines
2.9 KiB
Plaintext
:VERSION 1 # --------------------------
|
|
|
|
BEGIN;
|
|
|
|
CREATE TABLE os_groups_groups (
|
|
"GroupID" char(36) Primary Key NOT NULL default '',
|
|
"Location" varchar(255) NOT NULL default '',
|
|
"Name" varchar(255) NOT NULL default '',
|
|
"Charter" text NOT NULL,
|
|
"InsigniaID" char(36) NOT NULL default '',
|
|
"FounderID" char(36) NOT NULL default '',
|
|
"MembershipFee" integer NOT NULL default '0',
|
|
"OpenEnrollment" varchar(255) NOT NULL default '',
|
|
"ShowInList" integer NOT NULL default '0',
|
|
"AllowPublish" integer NOT NULL default '0',
|
|
"MaturePublish" integer NOT NULL default '0',
|
|
"OwnerRoleID" char(36) NOT NULL default ''
|
|
);
|
|
|
|
|
|
CREATE TABLE os_groups_membership (
|
|
"GroupID"char(36) NOT NULL default '',
|
|
"PrincipalID" VARCHAR(255) NOT NULL default '',
|
|
"SelectedRoleID" char(36) NOT NULL default '',
|
|
"Contribution" integer NOT NULL default '0',
|
|
"ListInProfile" integer NOT NULL default '1',
|
|
"AcceptNotices" integer NOT NULL default '1',
|
|
"AccessToken" char(36) NOT NULL default '',
|
|
constraint os_groupmemberpk primary key ("GroupID", "PrincipalID")
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE os_groups_roles (
|
|
"GroupID" char(36) NOT NULL default '',
|
|
"RoleID" char(36) NOT NULL default '',
|
|
"Name" varchar(255) NOT NULL default '',
|
|
"Description" varchar(255) NOT NULL default '',
|
|
"Title" varchar(255) NOT NULL default '',
|
|
"Powers" bigint NOT NULL default 0,
|
|
constraint os_grouprolepk PRIMARY KEY ("GroupID","RoleID")
|
|
);
|
|
|
|
|
|
CREATE TABLE os_groups_rolemembership (
|
|
"GroupID" char(36) NOT NULL default '',
|
|
"RoleID" char(36) NOT NULL default '',
|
|
"PrincipalID" VARCHAR(255) NOT NULL default '',
|
|
constraint os_grouprolememberpk PRIMARY KEY ("GroupID","RoleID","PrincipalID")
|
|
);
|
|
|
|
|
|
CREATE TABLE os_groups_invites (
|
|
"InviteID" char(36) NOT NULL default '',
|
|
"GroupID" char(36) NOT NULL default '',
|
|
"RoleID" char(36) NOT NULL default '',
|
|
"PrincipalID" VARCHAR(255) NOT NULL default '',
|
|
"TMStamp" timestamp NOT NULL default now(),
|
|
constraint os_groupinvitespk PRIMARY KEY ("InviteID")
|
|
);
|
|
-- UNIQUE KEY "PrincipalGroup" ("GroupID","PrincipalID")
|
|
|
|
|
|
CREATE TABLE os_groups_notices (
|
|
"GroupID" char(36) NOT NULL default '',
|
|
"NoticeID" char(36) NOT NULL default '',
|
|
"TMStamp" integer NOT NULL default '0',
|
|
"FromName" varchar(255) NOT NULL default '',
|
|
"Subject" varchar(255) NOT NULL default '',
|
|
"Message" text NOT NULL,
|
|
"HasAttachment" integer NOT NULL default '0',
|
|
"AttachmentType" integer NOT NULL default '0',
|
|
"AttachmentName" varchar(128) NOT NULL default '',
|
|
"AttachmentItemID" char(36) NOT NULL default '',
|
|
"AttachmentOwnerID" varchar(255) NOT NULL default '',
|
|
constraint os_groupsnoticespk PRIMARY KEY ("NoticeID")
|
|
);
|
|
-- KEY "GroupID" ("GroupID"),
|
|
-- KEY "TMStamp" ("TMStamp")
|
|
|
|
CREATE TABLE os_groups_principals (
|
|
"PrincipalID" VARCHAR(255) NOT NULL default '',
|
|
"ActiveGroupID" char(36) NOT NULL default '',
|
|
constraint os_groupprincpk PRIMARY KEY ("PrincipalID")
|
|
);
|
|
|
|
COMMIT;
|
|
|
|
:VERSION 2 # --------------------------
|
|
|
|
BEGIN;
|
|
|
|
|
|
COMMIT;
|