Add refresh all to migration 177 for v0.2 migrations

This commit is contained in:
Qstick 2020-11-28 01:15:59 -05:00
parent 46ff3b7538
commit 23a8b68869
1 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,15 @@ namespace NzbDrone.Core.Datastore.Migration
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)