diff options
author | Justin Clarke Casey | 2008-09-12 21:24:11 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-09-12 21:24:11 +0000 |
commit | 1edee634ca511e48286a4c3f248b816ccc61c81f (patch) | |
tree | bbb77a4d22f4d136998451202048cd39caed6f0a /OpenSim/Data/Migration.cs | |
parent | * minor: Remove warnings (diff) | |
download | opensim-SC_OLD-1edee634ca511e48286a4c3f248b816ccc61c81f.zip opensim-SC_OLD-1edee634ca511e48286a4c3f248b816ccc61c81f.tar.gz opensim-SC_OLD-1edee634ca511e48286a4c3f248b816ccc61c81f.tar.bz2 opensim-SC_OLD-1edee634ca511e48286a4c3f248b816ccc61c81f.tar.xz |
* minor: spelling mistake and message tidying on Migration messages
Diffstat (limited to 'OpenSim/Data/Migration.cs')
-rw-r--r-- | OpenSim/Data/Migration.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs index 8e4cba3..2083088 100644 --- a/OpenSim/Data/Migration.cs +++ b/OpenSim/Data/Migration.cs | |||
@@ -210,7 +210,7 @@ namespace OpenSim.Data | |||
210 | { | 210 | { |
211 | DbCommand cmd = _conn.CreateCommand(); | 211 | DbCommand cmd = _conn.CreateCommand(); |
212 | cmd.CommandText = "insert into migrations(name, version) values('" + type + "', " + version + ")"; | 212 | cmd.CommandText = "insert into migrations(name, version) values('" + type + "', " + version + ")"; |
213 | m_log.InfoFormat("[MIGRATIONS] Creating {0} at version {1}", type, version); | 213 | m_log.InfoFormat("[MIGRATIONS]: Creating {0} at version {1}", type, version); |
214 | cmd.ExecuteNonQuery(); | 214 | cmd.ExecuteNonQuery(); |
215 | } | 215 | } |
216 | 216 | ||
@@ -218,7 +218,7 @@ namespace OpenSim.Data | |||
218 | { | 218 | { |
219 | DbCommand cmd = _conn.CreateCommand(); | 219 | DbCommand cmd = _conn.CreateCommand(); |
220 | cmd.CommandText = "update migrations set version=" + version + " where name='" + type + "'"; | 220 | cmd.CommandText = "update migrations set version=" + version + " where name='" + type + "'"; |
221 | m_log.InfoFormat("[MIGRATIONS] Updating {0} to version {1}", type, version); | 221 | m_log.InfoFormat("[MIGRATIONS]: Updating {0} to version {1}", type, version); |
222 | cmd.ExecuteNonQuery(); | 222 | cmd.ExecuteNonQuery(); |
223 | } | 223 | } |
224 | 224 | ||
@@ -236,11 +236,11 @@ namespace OpenSim.Data | |||
236 | 236 | ||
237 | foreach (string s in names) | 237 | foreach (string s in names) |
238 | { | 238 | { |
239 | m_log.InfoFormat("[MIGRATION] - testing resoure {0}", s); | 239 | m_log.InfoFormat("[MIGRATIONS]: testing resource {0}", s); |
240 | Match m = _match.Match(s); | 240 | Match m = _match.Match(s); |
241 | if (m.Success) | 241 | if (m.Success) |
242 | { | 242 | { |
243 | m_log.Info("MIGRATION: Match: " + m.Groups[1].ToString()); | 243 | m_log.Info("[MIGRATIONS]: Match: " + m.Groups[1].ToString()); |
244 | int version = int.Parse(m.Groups[1].ToString()); | 244 | int version = int.Parse(m.Groups[1].ToString()); |
245 | if (version > after) { | 245 | if (version > after) { |
246 | using (Stream resource = _assem.GetManifestResourceStream(s)) | 246 | using (Stream resource = _assem.GetManifestResourceStream(s)) |
@@ -256,7 +256,7 @@ namespace OpenSim.Data | |||
256 | } | 256 | } |
257 | 257 | ||
258 | if (migrations.Count < 1) { | 258 | if (migrations.Count < 1) { |
259 | m_log.InfoFormat("[MIGRATIONS] {0} up to date, no migrations to apply", _type); | 259 | m_log.InfoFormat("[MIGRATIONS]: {0} up to date, no migrations to apply", _type); |
260 | } | 260 | } |
261 | return migrations; | 261 | return migrations; |
262 | } | 262 | } |