From bd2c345e56f0857d4d48e8bea509e00954be5d9f Mon Sep 17 00:00:00 2001
From: Charles Krinke
Date: Fri, 23 Jan 2009 20:21:43 +0000
Subject: Thank you kindly, TLaukkan (Tommil) for a patch that:  	 *
 Added Npgsql.dll and Mono.Security.dll which are NpgsqlDriver dlls. * Added
 missing field to schema creation scripts: PathTaperY. * Added schema creation
 scripts for PostgreSQL. * Added unit test classes for PostgreSQL. * Added
 schema creation script folder to NHibernate project in prebuild.xml * Added
 Npgsql.dll to NHibernate test project dependencies in prebuild.xml * Ensured
 that build works with both nant and Visual Studio. * Executed build unit
 tests with nant and NHibernate unit tests with NUnitGUI   - Couple of region
 tests fail due to double precission float rounding errors need to sort out
 how these are handles in unit tests and if higher precission numeric field
 needs to be used in Postgresql.

---
 .../PostgreSQLDialect/001_InventoryStore.sql       | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_InventoryStore.sql

(limited to 'OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_InventoryStore.sql')

diff --git a/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_InventoryStore.sql b/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_InventoryStore.sql
new file mode 100644
index 0000000..767d351
--- /dev/null
+++ b/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_InventoryStore.sql
@@ -0,0 +1,39 @@
+CREATE TABLE InventoryFolders (
+  ID VARCHAR(36) NOT NULL,
+  Type SMALLINT DEFAULT NULL,
+  Version SMALLINT DEFAULT NULL,
+  ParentID VARCHAR(36) DEFAULT NULL,
+  Owner VARCHAR(36) DEFAULT NULL,
+  Name VARCHAR(64) DEFAULT NULL,
+  PRIMARY KEY (ID)
+);
+
+CREATE INDEX InventoryFoldersOwnerIdIndex ON InventoryFolders (Owner);
+CREATE INDEX InventoryFoldersParentIdIndex ON InventoryFolders (ParentID);
+
+CREATE TABLE InventoryItems (
+  ID VARCHAR(36) NOT NULL,
+  InvType SMALLINT DEFAULT NULL,
+  AssetType SMALLINT DEFAULT NULL,
+  AssetID VARCHAR(36) DEFAULT NULL,
+  Folder VARCHAR(36) DEFAULT NULL,
+  Owner VARCHAR(36) DEFAULT NULL,
+  Creator VARCHAR(36) DEFAULT NULL,
+  Name VARCHAR(64) DEFAULT NULL,
+  Description VARCHAR(64) DEFAULT NULL,
+  NextPermissions INT DEFAULT NULL,
+  CurrentPermissions INT DEFAULT NULL,
+  BasePermissions INT DEFAULT NULL,
+  EveryOnePermissions INT DEFAULT NULL,
+  GroupID VARCHAR(36) DEFAULT NULL,
+  GroupOwned BOOLEAN DEFAULT NULL,
+  SalePrice INT DEFAULT NULL,
+  SaleType SMALLINT DEFAULT NULL,
+  Flags INT DEFAULT NULL,
+  CreationDate INT DEFAULT NULL,
+  PRIMARY KEY (ID)
+);
+
+CREATE INDEX InventoryItemsGroupIdIndex ON InventoryItems (GroupID);
+CREATE INDEX InventoryItemsOwnerIdIndex ON InventoryItems (Owner);
+CREATE INDEX InventoryItemsFolderIdIndex ON InventoryItems (Folder);
-- 
cgit v1.1

