mirror of
https://github.com/Radarr/Radarr
synced 2024-12-29 03:15:19 +00:00
21 lines
No EOL
588 B
C#
21 lines
No EOL
588 B
C#
using System;
|
|
using System.Data;
|
|
using Migrator.Framework;
|
|
using NzbDrone.Common;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
{
|
|
|
|
[Migration(20120919)]
|
|
public class Migration20120919 : NzbDroneMigration
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Database.AddColumn("Series", new Column("CustomStartDate", DbType.DateTime, ColumnProperty.Null));
|
|
|
|
Database.ExecuteNonQuery("UPDATE Series SET CustomStartDate = DownloadEpisodesAiredAfter");
|
|
|
|
Database.RemoveColumn("Series", "DownloadEpisodesAiredAfter");
|
|
}
|
|
}
|
|
} |