mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Add indexes for albums statistics
This commit is contained in:
parent
54607eb2e0
commit
b259136d3f
1 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(079)]
|
||||
public class add_indexes_album_statistics : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Create.Index().OnTable("Albums").OnColumn("Monitored");
|
||||
Create.Index().OnTable("Albums").OnColumn("ReleaseDate");
|
||||
Create.Index().OnTable("AlbumReleases").OnColumn("Monitored");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue