aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLSimulationData.cs
diff options
context:
space:
mode:
authorDiva Canto2011-03-08 09:02:29 -0800
committerDiva Canto2011-03-08 09:02:29 -0800
commit9923a2ff1002d722ccebea8bf4d71718ed4e2a03 (patch)
tree5181ed92a1bc682cd5d7ae383bf016fd6b8b6865 /OpenSim/Data/MySQL/MySQLSimulationData.cs
parentfactor out SetPartMediaFlags() function in MoapModule. (diff)
downloadopensim-SC_OLD-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.zip
opensim-SC_OLD-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.tar.gz
opensim-SC_OLD-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.tar.bz2
opensim-SC_OLD-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.tar.xz
Pull up Assembly of the MySQL classes as a protected property, so that it can be overwritten in subclasses. That way extensions can decide in which assembly migration resources should be looked up. This is just a refactor -- no functional changes whatsoever.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index 02997b3..e14d775 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -52,6 +52,11 @@ namespace OpenSim.Data.MySQL
52 private string m_connectionString; 52 private string m_connectionString;
53 private object m_dbLock = new object(); 53 private object m_dbLock = new object();
54 54
55 protected virtual Assembly Assembly
56 {
57 get { return GetType().Assembly; }
58 }
59
55 public MySQLSimulationData() 60 public MySQLSimulationData()
56 { 61 {
57 } 62 }
@@ -71,8 +76,7 @@ namespace OpenSim.Data.MySQL
71 76
72 // Apply new Migrations 77 // Apply new Migrations
73 // 78 //
74 Assembly assem = GetType().Assembly; 79 Migration m = new Migration(dbcon, Assembly, "RegionStore");
75 Migration m = new Migration(dbcon, assem, "RegionStore");
76 m.Update(); 80 m.Update();
77 81
78 // Clean dropped attachments 82 // Clean dropped attachments