aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-05-16 11:55:03 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-05-16 11:55:03 +0300
commit8b7a4f49dddb3ff8d57f33c43413c9dc96de7c0e (patch)
tree5bc6ec1061fe535985d2528778fb1aaf0067a351 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
parentbc8f67547d767a22a5da85bef322a8c15503197c (diff)
downloadTango-8b7a4f49dddb3ff8d57f33c43413c9dc96de7c0e.tar.gz
Tango-8b7a4f49dddb3ff8d57f33c43413c9dc96de7c0e.zip
Added SUSPEND_VERSION_UPDATE
Added PERFORM_SCHEMA_UPDATE Added DEVICE_COM_PORT fields to DB, MS, PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
index 3061b9506..31b2f5534 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
@@ -358,7 +358,7 @@ namespace Tango.PPC.Common.MachineUpdate
ExaminerSequenceConfiguration config_sequence = ExaminerSequenceConfiguration.FromFile(config_file);
- foreach (var item in config_sequence.Items.Where(x => x.Type == ExaminerSequenceItemType.Data).OrderBy(x => x.Index))
+ foreach (var item in config_sequence.Items.Where(x => x.Type == ExaminerSequenceItemType.Data || update_response.PerformSchemaUpdate).OrderBy(x => x.Index))
{
LogManager.Log($"Executing update script '{item.FileName}...'");
@@ -375,7 +375,7 @@ namespace Tango.PPC.Common.MachineUpdate
var config = builder.Build();
- ExaminerProcess process = new ExaminerProcess(config, ExaminerProcessType.Data);
+ ExaminerProcess process = new ExaminerProcess(config, item.Type == ExaminerSequenceItemType.Data ? ExaminerProcessType.Data : ExaminerProcessType.Schema);
process.Progress += (x, msg) =>
{
LogManager.Log(msg);
@@ -389,7 +389,7 @@ namespace Tango.PPC.Common.MachineUpdate
if (result.ExitCode != ExaminerProcessExitCode.Success)
{
- throw LogManager.Log(new InvalidDataException(String.Format("OverrideData script has terminated with exit code '{0}'.", result.ExitCode)));
+ throw LogManager.Log(new InvalidDataException($"{item.FileName} script has terminated with exit code '{result.ExitCode}'."));
}
LogManager.Log("Script executed successfully.");