|
|
@ -64,6 +64,8 @@ namespace Ombi
|
|
|
|
|
|
|
|
|
|
|
|
if (migrate)
|
|
|
|
if (migrate)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
Console.WriteLine("Migrate in progress...");
|
|
|
|
|
|
|
|
|
|
|
|
var migrationTasks = new List<Task>();
|
|
|
|
var migrationTasks = new List<Task>();
|
|
|
|
var externalDb = provider.GetRequiredService<ExternalContext>();
|
|
|
|
var externalDb = provider.GetRequiredService<ExternalContext>();
|
|
|
|
var ombiDb = provider.GetRequiredService<OmbiContext>();
|
|
|
|
var ombiDb = provider.GetRequiredService<OmbiContext>();
|
|
|
@ -73,6 +75,7 @@ namespace Ombi
|
|
|
|
|
|
|
|
|
|
|
|
Task.WaitAll(migrationTasks.ToArray());
|
|
|
|
Task.WaitAll(migrationTasks.ToArray());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("Migrate complete.");
|
|
|
|
Environment.Exit(0);
|
|
|
|
Environment.Exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|