mirror of https://github.com/Sonarr/Sonarr
22 lines
627 B
C#
22 lines
627 B
C#
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Tags("")]
|
|
[Migration(3)]
|
|
public class remove_renamed_scene_mapping_columns : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Delete.Table("SceneMappings");
|
|
|
|
Create.TableForModel("SceneMappings")
|
|
.WithColumn("TvdbId").AsInt32()
|
|
.WithColumn("SeasonNumber").AsInt32()
|
|
.WithColumn("SearchTerm").AsString()
|
|
.WithColumn("ParseTerm").AsString();
|
|
}
|
|
}
|
|
}
|