mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
SceneMappings now have season number
This commit is contained in:
parent
1bcb080666
commit
e4861283b6
5 changed files with 45 additions and 1 deletions
17
NzbDrone.Core/Datastore/Migrations/Migration20121223.cs
Normal file
17
NzbDrone.Core/Datastore/Migrations/Migration20121223.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Migrator.Framework;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
[Migration(20121223)]
|
||||
public class Migration20121223 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.AddColumn("SceneMappings", new Column("SeasonNumber", DbType.Int32, ColumnProperty.Null));
|
||||
Database.ExecuteNonQuery("UPDATE SceneMappings SET SeasonNumber = -1 WHERE SeasonNumber IS NULL");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue