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:
commit
1201820799
@ -24,6 +24,14 @@ public static class LegacyMigrationService
|
|||||||
logger.Information("No legacy database found, nothing to migrate");
|
logger.Information("No legacy database found, nothing to migrate");
|
||||||
return;
|
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>();
|
using ArtemisDbContext dbContext = container.Resolve<ArtemisDbContext>();
|
||||||
MigrateToSqlite(logger, dbContext);
|
MigrateToSqlite(logger, dbContext);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user