mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Updated ForceMigration()
This commit is contained in:
parent
680ea45839
commit
8bf80ecda0
@ -131,7 +131,7 @@ private static void BindJobs()
|
|||||||
_kernel.Bind<IJob>().To<RssSyncJob>().InTransientScope();
|
_kernel.Bind<IJob>().To<RssSyncJob>().InTransientScope();
|
||||||
_kernel.Bind<IJob>().To<NewSeriesUpdate>().InTransientScope();
|
_kernel.Bind<IJob>().To<NewSeriesUpdate>().InTransientScope();
|
||||||
_kernel.Bind<IJob>().To<UpdateInfoJob>().InTransientScope();
|
_kernel.Bind<IJob>().To<UpdateInfoJob>().InTransientScope();
|
||||||
|
|
||||||
_kernel.Get<JobProvider>().Initialize();
|
_kernel.Get<JobProvider>().Initialize();
|
||||||
_kernel.Get<WebTimer>().StartTimer(30);
|
_kernel.Get<WebTimer>().StartTimer(30);
|
||||||
}
|
}
|
||||||
@ -139,11 +139,12 @@ private static void BindJobs()
|
|||||||
|
|
||||||
private static void ForceMigration(IRepository repository)
|
private static void ForceMigration(IRepository repository)
|
||||||
{
|
{
|
||||||
repository.GetPaged<Series>(0, 1);
|
repository.All<Series>().Count();
|
||||||
repository.GetPaged<EpisodeFile>(0, 1);
|
repository.All<Season>().Count();
|
||||||
repository.GetPaged<Episode>(0, 1);
|
repository.All<Episode>().Count();
|
||||||
repository.GetPaged<Season>(0, 1);
|
repository.All<EpisodeFile>().Count();
|
||||||
repository.GetPaged<History>(0, 1);
|
repository.All<QualityProfile>().Count();
|
||||||
|
repository.All<History>().Count();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user