New: Add DB Indexes for MovieMetadata

pull/7330/head
Qstick 2 years ago
parent 8b4621db61
commit 301a6904c0

@ -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");
}
}
}
Loading…
Cancel
Save