diff options
Diffstat (limited to 'OpenSim/Data/Migration.cs')
-rw-r--r-- | OpenSim/Data/Migration.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs index 987eab5..e54296d 100644 --- a/OpenSim/Data/Migration.cs +++ b/OpenSim/Data/Migration.cs | |||
@@ -146,7 +146,14 @@ namespace OpenSim.Data | |||
146 | foreach (string sql in script) | 146 | foreach (string sql in script) |
147 | { | 147 | { |
148 | cmd.CommandText = sql; | 148 | cmd.CommandText = sql; |
149 | cmd.ExecuteNonQuery(); | 149 | try |
150 | { | ||
151 | cmd.ExecuteNonQuery(); | ||
152 | } | ||
153 | catch | ||
154 | { | ||
155 | throw new Exception(sql); | ||
156 | } | ||
150 | } | 157 | } |
151 | } | 158 | } |
152 | } | 159 | } |
@@ -199,8 +206,8 @@ namespace OpenSim.Data | |||
199 | } | 206 | } |
200 | catch (Exception e) | 207 | catch (Exception e) |
201 | { | 208 | { |
202 | m_log.DebugFormat("[MIGRATIONS] Cmd was {0}", kvp.Value.ToString()); | 209 | m_log.DebugFormat("[MIGRATIONS] Cmd was {0}", e.Message); |
203 | m_log.DebugFormat("[MIGRATIONS]: An error has occurred in the migration {0}. This may mean you could see errors trying to run OpenSim. If you see database related errors, you will need to fix the issue manually. Continuing.", e.Message); | 210 | m_log.Debug("[MIGRATIONS]: An error has occurred in the migration. This may mean you could see errors trying to run OpenSim. If you see database related errors, you will need to fix the issue manually. Continuing."); |
204 | ExecuteScript("ROLLBACK;"); | 211 | ExecuteScript("ROLLBACK;"); |
205 | } | 212 | } |
206 | 213 | ||