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)