Fixed: Migrate Legacy MediaInfo HDR token to VideoDynamicRange

Closes #4132
This commit is contained in:
bakerboy448 2021-06-28 22:33:25 -05:00 committed by GitHub
parent a3242b4823
commit 8eedae1af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
using FluentMigrator;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(196)]
public class legacy_mediainfo_hdr : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Execute.Sql("UPDATE NamingConfig SET StandardMovieFormat = Replace(StandardMovieFormat, '{MediaInfo HDR}', '{MediaInfo VideoDynamicRange}');");
}
}
}