fix RegionStore creation so that the .sql file works

0.6.0-stable
Sean Dague 2008-07-16 21:27:55 +00:00
parent 194ffb4d88
commit d3190236cc
2 changed files with 6 additions and 6 deletions

View File

@ -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];

View File

@ -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;