mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-02-27 18:26:32 +00:00
Added absolute episode number to DB
This commit is contained in:
17
NzbDrone.Core/Datastore/Migrations/Migration20121012.cs
Normal file
17
NzbDrone.Core/Datastore/Migrations/Migration20121012.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using Migrator.Framework;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
|
||||
[Migration(20121012)]
|
||||
public class Migration20121012 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.AddColumn("Episode", new Column("AbsoluteEpisodeNumber", DbType.Int32, ColumnProperty.Null));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -336,6 +336,7 @@ namespace NzbDrone.Core.Providers
|
||||
episodeToUpdate.TvDbEpisodeId = episode.Id;
|
||||
episodeToUpdate.EpisodeNumber = episode.EpisodeNumber;
|
||||
episodeToUpdate.SeasonNumber = episode.SeasonNumber;
|
||||
episodeToUpdate.AbsoluteEpisodeNumber = episode.AbsoluteEpisodeNumber;
|
||||
episodeToUpdate.Title = episode.EpisodeName;
|
||||
|
||||
episodeToUpdate.Overview = episode.Overview.Truncate(3500);
|
||||
|
||||
@@ -18,12 +18,10 @@ namespace NzbDrone.Core.Repository
|
||||
public int EpisodeNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime? AirDate { get; set; }
|
||||
|
||||
public string Overview { get; set; }
|
||||
|
||||
public Boolean Ignored { get; set; }
|
||||
|
||||
public PostDownloadStatusType PostDownloadStatus { get; set; }
|
||||
public int AbsoluteEpisodeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the grab date.
|
||||
|
||||
Reference in New Issue
Block a user