diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs index 1c9e363dca..98d82a1c09 100644 --- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs +++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs @@ -54,10 +54,10 @@ namespace OpenSim.Data.NHibernate private ISessionFactory factory; private ISession session; - public void Initialise() - { - Initialise("SQLiteDialect;SqliteClientDriver;URI=file:OpenSim.db,version=3", true); - } + // public void Initialise() + // { + // Initialise("SQLiteDialect;SqliteClientDriver;URI=file:OpenSim.db,version=3", true); + // } public void Initialise(string connect, bool persistpriminventories) { @@ -67,7 +67,7 @@ namespace OpenSim.Data.NHibernate if (parts.Length != 3) { // TODO: make this a real exception type - throw new Exception("Malformed Inventory connection string '" + connect + "'"); + throw new Exception("Malformed Region connection string '" + connect + "'"); } string dialect = parts[0]; diff --git a/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql b/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql index 1811a44c82..99a52270d2 100644 --- a/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql +++ b/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql @@ -74,6 +74,6 @@ CREATE TABLE `Prims` ( `ExtraParams` longblob, PRIMARY KEY (`UUID`), KEY `prims_regionuuid` (`RegionID`), - KEY 'prims_parentuuid' ('ParentUUID') + KEY `prims_parentuuid` (`ParentUUID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;