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/MySQLAuthenticationData.cs | |
parent | factor out SetPartMediaFlags() function in MoapModule. (diff) | |
download | opensim-SC-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.zip opensim-SC-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.tar.gz opensim-SC-9923a2ff1002d722ccebea8bf4d71718ed4e2a03.tar.bz2 opensim-SC-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/MySQLAuthenticationData.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAuthenticationData.cs b/OpenSim/Data/MySQL/MySQLAuthenticationData.cs index 5056aee..8d82f61 100644 --- a/OpenSim/Data/MySQL/MySQLAuthenticationData.cs +++ b/OpenSim/Data/MySQL/MySQLAuthenticationData.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | ||
31 | using System.Data; | 32 | using System.Data; |
32 | using OpenMetaverse; | 33 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
@@ -42,6 +43,11 @@ namespace OpenSim.Data.MySQL | |||
42 | private int m_LastExpire; | 43 | private int m_LastExpire; |
43 | // private string m_connectionString; | 44 | // private string m_connectionString; |
44 | 45 | ||
46 | protected virtual Assembly Assembly | ||
47 | { | ||
48 | get { return GetType().Assembly; } | ||
49 | } | ||
50 | |||
45 | public MySqlAuthenticationData(string connectionString, string realm) | 51 | public MySqlAuthenticationData(string connectionString, string realm) |
46 | : base(connectionString) | 52 | : base(connectionString) |
47 | { | 53 | { |
@@ -51,7 +57,7 @@ namespace OpenSim.Data.MySQL | |||
51 | using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) | 57 | using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) |
52 | { | 58 | { |
53 | dbcon.Open(); | 59 | dbcon.Open(); |
54 | Migration m = new Migration(dbcon, GetType().Assembly, "AuthStore"); | 60 | Migration m = new Migration(dbcon, Assembly, "AuthStore"); |
55 | m.Update(); | 61 | m.Update(); |
56 | } | 62 | } |
57 | } | 63 | } |