mirror of https://github.com/Radarr/Radarr
21 lines
612 B
C#
21 lines
612 B
C#
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[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();
|
|
}
|
|
}
|
|
}
|