2020-01-12 03:13:28 +00:00
|
|
|
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");
|
|
|
|
|
2022-03-28 20:45:52 +00:00
|
|
|
Execute.Sql("DELETE FROM \"Config\" WHERE \"Key\" IN ('pathsdefaultstatic')");
|
2020-01-12 03:13:28 +00:00
|
|
|
|
|
|
|
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
|
2020-01-12 03:13:28 +00:00
|
|
|
Delete.Column("Path").FromTable("MovieFiles");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|