From 70051278c448c130259d2ead4af1de1696879f58 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Mon, 9 Feb 2009 21:44:39 +0000 Subject: Thank you kindly, TLaukkan (Tommil) for a patch that: * Updated migration scripts and hbm.xml so that nhibernate tests work. --- OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml | 1 + OpenSim/Data/NHibernate/Resources/MsSql2005Dialect/001_AssetStore.sql | 3 ++- OpenSim/Data/NHibernate/Resources/MySQLDialect/001_AssetStore.sql | 1 + OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_AssetStore.sql | 1 + OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Data/NHibernate') diff --git a/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml b/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml index db400ea..49b4ec7 100644 --- a/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml +++ b/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml @@ -6,6 +6,7 @@ + diff --git a/OpenSim/Data/NHibernate/Resources/MsSql2005Dialect/001_AssetStore.sql b/OpenSim/Data/NHibernate/Resources/MsSql2005Dialect/001_AssetStore.sql index b998653..4ece29a 100644 --- a/OpenSim/Data/NHibernate/Resources/MsSql2005Dialect/001_AssetStore.sql +++ b/OpenSim/Data/NHibernate/Resources/MsSql2005Dialect/001_AssetStore.sql @@ -1,5 +1,6 @@ create table Assets ( - ID NVARCHAR(255) not null, + ID NVARCHAR(36) not null, + MetadataID NVARCHAR(36) NOT NULL, Type SMALLINT null, Name NVARCHAR(64) null, Description NVARCHAR(64) null, diff --git a/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_AssetStore.sql b/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_AssetStore.sql index 9573781..1a39233 100644 --- a/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_AssetStore.sql +++ b/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_AssetStore.sql @@ -1,5 +1,6 @@ CREATE TABLE Assets ( ID VARCHAR(36) NOT NULL, + MetadataID VARCHAR(36) NOT NULL, Type TINYINT DEFAULT NULL, Name VARCHAR(64) DEFAULT NULL, Description VARCHAR(64) DEFAULT NULL, diff --git a/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_AssetStore.sql b/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_AssetStore.sql index 4753123..f581b18 100644 --- a/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_AssetStore.sql +++ b/OpenSim/Data/NHibernate/Resources/PostgreSQLDialect/001_AssetStore.sql @@ -1,5 +1,6 @@ CREATE TABLE Assets ( ID VARCHAR(36) NOT NULL, + MetadataID VARCHAR(36) NOT NULL, Type SMALLINT DEFAULT NULL, Name VARCHAR(64) DEFAULT NULL, Description VARCHAR(64) DEFAULT NULL, diff --git a/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql b/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql index 15e10b3..b71b552 100644 --- a/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql +++ b/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql @@ -1,5 +1,6 @@ CREATE TABLE Assets ( ID VARCHAR(36) NOT NULL, + MetadataID VARCHAR(36) NOT NULL, Type TINYINT DEFAULT NULL, Name VARCHAR(64) DEFAULT NULL, Description VARCHAR(64) DEFAULT NULL, -- cgit v1.1