Radarr/src/NzbDrone.Core/Datastore/Migration/167_remove_movie_pathstate.cs

22 lines
654 B
C#
Raw Normal View History

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();
2022-11-20 18:27:45 +00:00
// This is Ignored in mapping, should not be in DB
Delete.Column("Path").FromTable("MovieFiles");
}
}
}