1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Merge branch 'development'

This commit is contained in:
Robert 2024-03-14 07:12:21 +01:00
commit 1201820799

View File

@ -25,6 +25,14 @@ public static class LegacyMigrationService
return;
}
// If the legacy database has already been migrated, but the old DB failed to be deleted, we don't want to migrate again
// In a future update we'll clean up the old DB if it's still there, for now lets leave people's files alone
if (File.Exists(Path.Combine(Constants.DataFolder, "legacy.db")))
{
logger.Information("Legacy database already migrated, nothing to do");
return;
}
using ArtemisDbContext dbContext = container.Resolve<ArtemisDbContext>();
MigrateToSqlite(logger, dbContext);
}