diff --git a/src/NzbDrone.Core/Datastore/Migration/209_movie_meta_collection_index.cs b/src/NzbDrone.Core/Datastore/Migration/209_movie_meta_collection_index.cs new file mode 100644 index 000000000..f9f7f199c --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/209_movie_meta_collection_index.cs @@ -0,0 +1,15 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(209)] + public class movie_meta_collection_index : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Create.Index("IX_MovieMetadata_CollectionTmdbId").OnTable("MovieMetadata").OnColumn("CollectionTmdbId"); + Create.Index("IX_MovieTranslations_MovieMetadataId").OnTable("MovieTranslations").OnColumn("MovieMetadataId"); + } + } +}