fix RegionStore creation so that the .sql file works
parent
194ffb4d88
commit
d3190236cc
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue