diff options
author | Diva Canto | 2011-03-08 09:02:29 -0800 |
---|---|---|
committer | Diva Canto | 2011-03-08 09:02:29 -0800 |
commit | 9923a2ff1002d722ccebea8bf4d71718ed4e2a03 (patch) | |
tree | 5181ed92a1bc682cd5d7ae383bf016fd6b8b6865 /OpenSim/Data/MySQL/MySQLSimulationData.cs | |
parent | factor out SetPartMediaFlags() function in MoapModule. (diff) | |
download | opensim-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.cs | 8 |
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 |