aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs b/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
index 8e91693..d29efa0 100644
--- a/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
+++ b/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
@@ -48,16 +48,23 @@ namespace OpenSim.Data.SQLite
48 protected string m_Realm; 48 protected string m_Realm;
49 protected FieldInfo m_DataField = null; 49 protected FieldInfo m_DataField = null;
50 50
51 private static bool m_initialized;
52
51 public SQLiteGenericTableHandler(string connectionString, 53 public SQLiteGenericTableHandler(string connectionString,
52 string realm, string storeName) : base(connectionString) 54 string realm, string storeName) : base(connectionString)
53 { 55 {
54 m_Realm = realm; 56 m_Realm = realm;
55 if (storeName != String.Empty) 57
58 if (!m_initialized)
56 { 59 {
57 Assembly assem = GetType().Assembly; 60 if (storeName != String.Empty)
61 {
62 Assembly assem = GetType().Assembly;
58 63
59 Migration m = new Migration(m_Connection, assem, storeName); 64 Migration m = new Migration(m_Connection, assem, storeName);
60 m.Update(); 65 m.Update();
66 }
67 m_initialized = true;
61 } 68 }
62 69
63 Type t = typeof(T); 70 Type t = typeof(T);