diff options
author | Melanie Thielker | 2008-09-14 13:23:02 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-14 13:23:02 +0000 |
commit | 281955949910eb257b5f7e42e54535ba7812418e (patch) | |
tree | 8c62c0006f2567983a686e811513c8c009061aac /OpenSim/Data/MSSQL/MSSQLEstateData.cs | |
parent | * Converted a number of methods within the login processes from private to pr... (diff) | |
download | opensim-SC_OLD-281955949910eb257b5f7e42e54535ba7812418e.zip opensim-SC_OLD-281955949910eb257b5f7e42e54535ba7812418e.tar.gz opensim-SC_OLD-281955949910eb257b5f7e42e54535ba7812418e.tar.bz2 opensim-SC_OLD-281955949910eb257b5f7e42e54535ba7812418e.tar.xz |
Mantis #2124
Thank you, RuudL, for a patch that brings MSSQL up to the same
implementation level as MySQL.
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLEstateData.cs')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLEstateData.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLEstateData.cs b/OpenSim/Data/MSSQL/MSSQLEstateData.cs index b42c67f..b3595d9 100644 --- a/OpenSim/Data/MSSQL/MSSQLEstateData.cs +++ b/OpenSim/Data/MSSQL/MSSQLEstateData.cs | |||
@@ -39,6 +39,8 @@ namespace OpenSim.Data.MSSQL | |||
39 | { | 39 | { |
40 | public class MSSQLEstateData : IEstateDataStore | 40 | public class MSSQLEstateData : IEstateDataStore |
41 | { | 41 | { |
42 | private const string _migrationStore = "EstateStore"; | ||
43 | |||
42 | private static readonly ILog _Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 44 | private static readonly ILog _Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
43 | 45 | ||
44 | private MSSQLManager _Database; | 46 | private MSSQLManager _Database; |
@@ -74,15 +76,7 @@ namespace OpenSim.Data.MSSQL | |||
74 | } | 76 | } |
75 | 77 | ||
76 | //Migration settings | 78 | //Migration settings |
77 | using (SqlConnection connection = _Database.DatabaseConnection()) | 79 | _Database.CheckMigration(_migrationStore); |
78 | { | ||
79 | Assembly assem = GetType().Assembly; | ||
80 | MSSQLMigration migration = new MSSQLMigration(connection, assem, "EstateStore"); | ||
81 | |||
82 | migration.Update(); | ||
83 | |||
84 | connection.Close(); | ||
85 | } | ||
86 | 80 | ||
87 | //Interesting way to get parameters! Maybe implement that also with other types | 81 | //Interesting way to get parameters! Maybe implement that also with other types |
88 | Type t = typeof(EstateSettings); | 82 | Type t = typeof(EstateSettings); |