aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Migration.cs
diff options
context:
space:
mode:
authorSean Dague2008-06-16 19:33:08 +0000
committerSean Dague2008-06-16 19:33:08 +0000
commite1409e0c04dc88294f64c09f917b8c245fb98600 (patch)
tree0a5dc318cf1b2171a86d4f75e81ab0cbff3f1309 /OpenSim/Data/Migration.cs
parentfix nhibernate driver so that it starts (based on the appearance (diff)
downloadopensim-SC-e1409e0c04dc88294f64c09f917b8c245fb98600.zip
opensim-SC-e1409e0c04dc88294f64c09f917b8c245fb98600.tar.gz
opensim-SC-e1409e0c04dc88294f64c09f917b8c245fb98600.tar.bz2
opensim-SC-e1409e0c04dc88294f64c09f917b8c245fb98600.tar.xz
be a bit more verbose about what we are doing on the migration
side so that people don't think we're hung.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Migration.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs
index 9447deb..6637e1a 100644
--- a/OpenSim/Data/Migration.cs
+++ b/OpenSim/Data/Migration.cs
@@ -122,6 +122,13 @@ namespace OpenSim.Data
122 version = FindVersion(_type); 122 version = FindVersion(_type);
123 123
124 SortedList<int, string> migrations = GetMigrationsAfter(version); 124 SortedList<int, string> migrations = GetMigrationsAfter(version);
125 if (migrations.Count < 1)
126 return;
127
128 // to prevent people from killing long migrations.
129 m_log.InfoFormat("[MIGRATIONS] Upgrading {0} to latest revision.", _type);
130 m_log.Info("[MIGRATIONS] NOTE: this may take a while, don't interupt this process!");
131
125 DbCommand cmd = _conn.CreateCommand(); 132 DbCommand cmd = _conn.CreateCommand();
126 foreach (KeyValuePair<int, string> kvp in migrations) 133 foreach (KeyValuePair<int, string> kvp in migrations)
127 { 134 {