Bugfix: must upgrade schemata before writing to db in backend

This commit is contained in:
Rick Falkvinge
2015-11-19 22:01:25 +01:00
parent b63b23b6cd
commit a357441f65
+5 -5
View File
@@ -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)