2021-01-06 21:36:28 +00:00
|
|
|
using FluentMigrator;
|
|
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
{
|
|
|
|
[Migration(42)]
|
|
|
|
public class remove_album_folders : NzbDroneMigrationBase
|
|
|
|
{
|
|
|
|
protected override void MainDbUpgrade()
|
|
|
|
{
|
|
|
|
Delete.Column("AlbumFolder").FromTable("Artists");
|
|
|
|
|
2022-01-26 00:08:27 +00:00
|
|
|
Execute.Sql("UPDATE \"NamingConfig\" SET \"StandardTrackFormat\" = \"AlbumFolderFormat\" || '/' || \"StandardTrackFormat\"");
|
|
|
|
Execute.Sql("UPDATE \"NamingConfig\" SET \"MultiDiscTrackFormat\" = \"AlbumFolderFormat\" || '/' || \"MultiDiscTrackFormat\"");
|
2021-01-06 21:36:28 +00:00
|
|
|
|
|
|
|
Delete.Column("AlbumFolderFormat").FromTable("NamingConfig");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|