diff --git a/TGCommandLine/Program.cs b/TGCommandLine/Program.cs index dc44483132..b788f2bd39 100644 --- a/TGCommandLine/Program.cs +++ b/TGCommandLine/Program.cs @@ -69,6 +69,11 @@ namespace TGCommandLine case "quit": case "exit": return (int)ExitCode.Normal; +#if DEBUG + case "debug-upgrade": + Server.GetComponent().PrepareForUpdate(); + return (int)ExitCode.Normal; +#endif default: //linq voodoo to get quoted strings var formattedCommand = NextCommand.Split('"') diff --git a/TGServerService/App.config b/TGServerService/App.config index 15f281ab77..8e565d7e93 100644 --- a/TGServerService/App.config +++ b/TGServerService/App.config @@ -59,7 +59,7 @@ 0 - 0 + 1 diff --git a/TGServerService/Properties/Settings.Designer.cs b/TGServerService/Properties/Settings.Designer.cs index 98907f5fa1..e0397af473 100644 --- a/TGServerService/Properties/Settings.Designer.cs +++ b/TGServerService/Properties/Settings.Designer.cs @@ -217,7 +217,7 @@ namespace TGServerService.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] + [global::System.Configuration.DefaultSettingValueAttribute("1")] public int SettingsVersion { get { return ((int)(this["SettingsVersion"])); diff --git a/TGServerService/Properties/Settings.settings b/TGServerService/Properties/Settings.settings index f31d1de817..803cc28afe 100644 --- a/TGServerService/Properties/Settings.settings +++ b/TGServerService/Properties/Settings.settings @@ -51,7 +51,7 @@ 0 - 0 + 1