mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
changes to allow asset_source to be specified in the opensim.ini
this will work for sqlite and nhibernate, but will be ignored for mysql and mssql (reverting to their ini files) until someone writes that bit.
This commit is contained in:
@@ -56,9 +56,12 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
private SqliteConnection m_conn;
|
||||
|
||||
public void Initialise(string dbfile, string dbname)
|
||||
override public void Initialise(string dbconnect)
|
||||
{
|
||||
m_conn = new SqliteConnection("URI=file:" + dbfile + ",version=3");
|
||||
if (dbconnect == string.Empty) {
|
||||
dbconnect = "URI=file:AssetStorage.db,version=3";
|
||||
}
|
||||
m_conn = new SqliteConnection(dbconnect);
|
||||
m_conn.Open();
|
||||
TestTables(m_conn);
|
||||
return;
|
||||
@@ -289,7 +292,7 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
override public void Initialise()
|
||||
{
|
||||
Initialise("AssetStorage.db", "");
|
||||
Initialise("URI=file:AssetStorage.db,version=3");
|
||||
}
|
||||
|
||||
override public string Name
|
||||
|
||||
Reference in New Issue
Block a user