mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 22:17:15 -04:00
Added some missing indexes to database
This commit is contained in:
parent
c5bcb13f63
commit
c8b409ed0b
1 changed files with 29 additions and 0 deletions
29
src/NzbDrone.Core/Datastore/Migration/237_add_indexes.cs
Normal file
29
src/NzbDrone.Core/Datastore/Migration/237_add_indexes.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(237)]
|
||||
public class add_indexes : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Create.Index().OnTable("Blocklist").OnColumn("MovieId");
|
||||
Create.Index().OnTable("Blocklist").OnColumn("Date");
|
||||
|
||||
Create.Index()
|
||||
.OnTable("History")
|
||||
.OnColumn("MovieId").Ascending()
|
||||
.OnColumn("Date").Descending();
|
||||
|
||||
Delete.Index().OnTable("History").OnColumn("DownloadId");
|
||||
Create.Index()
|
||||
.OnTable("History")
|
||||
.OnColumn("DownloadId").Ascending()
|
||||
.OnColumn("Date").Descending();
|
||||
|
||||
Create.Index().OnTable("Movies").OnColumn("MovieFileId");
|
||||
Create.Index().OnTable("Movies").OnColumn("Path");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue