You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/src/NzbDrone.Core/Datastore/Migration/167_remove_movie_pathstate.cs

22 lines
654 B

using FluentMigrator;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(167)]
public class remove_movie_pathstate : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Delete.Column("PathState").FromTable("Movies");
Execute.Sql("DELETE FROM \"Config\" WHERE \"Key\" IN ('pathsdefaultstatic')");
Alter.Table("MovieFiles").AddColumn("OriginalFilePath").AsString().Nullable();
// This is Ignored in mapping, should not be in DB
Delete.Column("Path").FromTable("MovieFiles");
}
}
}