From 483c2ae724ac9e48cd0ee88601e168c9dba201da Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 25 Jul 2020 22:42:47 -0400 Subject: [PATCH] Add MovieId and Language Index to Movie Translations Table --- .../Migration/179_movie_translation_indexes.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/NzbDrone.Core/Datastore/Migration/179_movie_translation_indexes.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/179_movie_translation_indexes.cs b/src/NzbDrone.Core/Datastore/Migration/179_movie_translation_indexes.cs new file mode 100644 index 000000000..c674a7b5c --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/179_movie_translation_indexes.cs @@ -0,0 +1,15 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(179)] + public class movie_translation_indexes : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Create.Index("IX_MovieTranslations_Language").OnTable("MovieTranslations").OnColumn("Language"); + Create.Index("IX_MovieTranslations_MovieId").OnTable("MovieTranslations").OnColumn("MovieId"); + } + } +}