From a357441f656ccbef382e78bec84ef8440d268d11 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 19 Nov 2015 22:01:25 +0100 Subject: [PATCH] Bugfix: must upgrade schemata before writing to db in backend --- Backend/Program.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Backend/Program.cs b/Backend/Program.cs index 8fd01694..ac0c9c61 100644 --- a/Backend/Program.cs +++ b/Backend/Program.cs @@ -154,14 +154,14 @@ namespace Swarmops.Backend Console.WriteLine (" * Swarmops Backend starting"); - BotLog.Write (0, "MainCycle", "Backend STARTING"); - - OutboundComm.CreateNotification (null, NotificationResource.System_Startup); - - // Checking for schemata upgrade + // Checking for schemata upgrade first of all DatabaseMaintenance.UpgradeSchemata(); + BotLog.Write(0, "MainCycle", "Backend STARTING"); + + OutboundComm.CreateNotification (null, NotificationResource.System_Startup); + // Check for existence of installation ID. If not, create one. Warning: has privacy implications when communicated. if (Persistence.Key["SwarmopsInstallationId"] == string.Empty)