From 23a8b688694a451b0f47a1e4844aaa168763594a Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 28 Nov 2020 01:15:59 -0500 Subject: [PATCH] Add refresh all to migration 177 for v0.2 migrations --- .../Datastore/Migration/177_language_improvements.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs b/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs index 8665fe0328..3f479e3884 100644 --- a/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs +++ b/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs @@ -59,6 +59,15 @@ protected override void MainDbUpgrade() Execute.WithConnection(FixLanguagesMoveFile); Execute.WithConnection(FixLanguagesHistory); + + //Force refresh all movies in library + Update.Table("ScheduledTasks") + .Set(new { LastExecution = "2014-01-01 00:00:00" }) + .Where(new { TypeName = "NzbDrone.Core.Movies.Commands.RefreshMovieCommand" }); + + Update.Table("Movies") + .Set(new { LastInfoSync = "2014-01-01 00:00:00" }) + .AllRows(); } private void FixLanguagesMoveFile(IDbConnection conn, IDbTransaction tran)