mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-09 13:28:39 +00:00
Only migrate database on production gameserver
This commit is contained in:
parent
64f65ba574
commit
caa4b9bec1
1 changed files with 5 additions and 2 deletions
|
@ -52,8 +52,10 @@ public static class StartupTasks
|
|||
|
||||
if (!dbConnected) Environment.Exit(1);
|
||||
using Database database = new();
|
||||
|
||||
Logger.Info("Migrating database...", LogArea.Database);
|
||||
|
||||
#if !DEBUG
|
||||
if(serverType == ServerType.GameServer)
|
||||
#endif
|
||||
migrateDatabase(database);
|
||||
|
||||
if (ServerConfiguration.Instance.InfluxDB.InfluxEnabled)
|
||||
|
@ -116,6 +118,7 @@ public static class StartupTasks
|
|||
|
||||
private static void migrateDatabase(Database database)
|
||||
{
|
||||
Logger.Info("Migrating database...", LogArea.Database);
|
||||
Stopwatch totalStopwatch = new();
|
||||
Stopwatch stopwatch = new();
|
||||
totalStopwatch.Start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue