mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Insert a ROLLBACK command on migration step failure. This ensures that
updating the Migrations table will not occur in a partial transaction, which would be auto-rolled-back later.
This commit is contained in:
@@ -146,6 +146,8 @@ namespace OpenSim.Data
|
||||
{
|
||||
m_log.DebugFormat("[MIGRATIONS] Cmd was {0}", cmd.CommandText);
|
||||
m_log.DebugFormat("[MIGRATIONS]: An error has occurred in the migration {0}.\n 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);
|
||||
cmd.CommandText = "ROLLBACK;";
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
if (version == 0)
|
||||
|
||||
Reference in New Issue
Block a user