mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Fixed migration issue
This commit is contained in:
parent
57690f49a0
commit
72af060d68
2 changed files with 18 additions and 11 deletions
|
@ -57,7 +57,6 @@ namespace NzbDrone.Core
|
|||
LogConfiguration.Setup();
|
||||
|
||||
Migrations.Run(Connection.MainConnectionString, true);
|
||||
ForceMigration(_kernel.Get<IRepository>());
|
||||
|
||||
SetupDefaultQualityProfiles(_kernel.Get<IRepository>()); //Setup the default QualityProfiles on start-up
|
||||
|
||||
|
@ -134,16 +133,6 @@ namespace NzbDrone.Core
|
|||
_kernel.Get<ExternalNotificationProvider>().InitializeNotifiers(notifiers.ToList());
|
||||
}
|
||||
|
||||
private static void ForceMigration(IRepository repository)
|
||||
{
|
||||
repository.All<Series>().Count();
|
||||
repository.All<Episode>().Count();
|
||||
repository.All<EpisodeFile>().Count();
|
||||
repository.All<QualityProfile>().Count();
|
||||
repository.All<History>().Count();
|
||||
repository.All<IndexerSetting>().Count();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Forces IISExpress process to exit with the host application
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue