* minor: spelling mistake and message tidying on Migration messages

0.6.0-stable
Justin Clarke Casey 2008-09-12 21:24:11 +00:00
parent 0dc1018ca1
commit 1edee634ca
1 changed files with 5 additions and 5 deletions

View File

@ -210,7 +210,7 @@ namespace OpenSim.Data
{
DbCommand cmd = _conn.CreateCommand();
cmd.CommandText = "insert into migrations(name, version) values('" + type + "', " + version + ")";
m_log.InfoFormat("[MIGRATIONS] Creating {0} at version {1}", type, version);
m_log.InfoFormat("[MIGRATIONS]: Creating {0} at version {1}", type, version);
cmd.ExecuteNonQuery();
}
@ -218,7 +218,7 @@ namespace OpenSim.Data
{
DbCommand cmd = _conn.CreateCommand();
cmd.CommandText = "update migrations set version=" + version + " where name='" + type + "'";
m_log.InfoFormat("[MIGRATIONS] Updating {0} to version {1}", type, version);
m_log.InfoFormat("[MIGRATIONS]: Updating {0} to version {1}", type, version);
cmd.ExecuteNonQuery();
}
@ -236,11 +236,11 @@ namespace OpenSim.Data
foreach (string s in names)
{
m_log.InfoFormat("[MIGRATION] - testing resoure {0}", s);
m_log.InfoFormat("[MIGRATIONS]: testing resource {0}", s);
Match m = _match.Match(s);
if (m.Success)
{
m_log.Info("MIGRATION: Match: " + m.Groups[1].ToString());
m_log.Info("[MIGRATIONS]: Match: " + m.Groups[1].ToString());
int version = int.Parse(m.Groups[1].ToString());
if (version > after) {
using (Stream resource = _assem.GetManifestResourceStream(s))
@ -256,7 +256,7 @@ namespace OpenSim.Data
}
if (migrations.Count < 1) {
m_log.InfoFormat("[MIGRATIONS] {0} up to date, no migrations to apply", _type);
m_log.InfoFormat("[MIGRATIONS]: {0} up to date, no migrations to apply", _type);
}
return migrations;
}