From 8eedae1af080fbac50cda4a6340a2b50478bae0f Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 28 Jun 2021 22:33:25 -0500 Subject: [PATCH] Fixed: Migrate Legacy MediaInfo HDR token to VideoDynamicRange Closes #4132 --- .../Migration/196_legacy_mediainfo_hdr.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/NzbDrone.Core/Datastore/Migration/196_legacy_mediainfo_hdr.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/196_legacy_mediainfo_hdr.cs b/src/NzbDrone.Core/Datastore/Migration/196_legacy_mediainfo_hdr.cs new file mode 100644 index 000000000..0d3a7fd45 --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/196_legacy_mediainfo_hdr.cs @@ -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}');"); + } + } +}