mirror of
https://github.com/Radarr/Radarr
synced 2024-12-24 17:01:38 +00:00
17 lines
No EOL
518 B
C#
17 lines
No EOL
518 B
C#
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");
|
|
}
|
|
}
|
|
} |