mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
cleaned up the mindfuck that was scene mapping.
This commit is contained in:
@@ -5,7 +5,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Tags("")]
|
||||
[Migration(2)]
|
||||
public class Remove_tvrage_imdb_unique_constraint : NzbDroneMigrationBase
|
||||
public class remove_tvrage_imdb_unique_constraint : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user