From e03af773759d08b79190f888a1e0c226b463a724 Mon Sep 17 00:00:00 2001 From: Matthew Despain Date: Thu, 4 May 2017 10:16:09 -0600 Subject: [PATCH] Adding music related columns to NamingConfig table. --- .../112_Add_music_fields_to_NamingConfig.cs | 15 +++++++++++++++ src/NzbDrone.Core/NzbDrone.Core.csproj | 1 + 2 files changed, 16 insertions(+) create mode 100644 src/NzbDrone.Core/Datastore/Migration/112_Add_music_fields_to_NamingConfig.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/112_Add_music_fields_to_NamingConfig.cs b/src/NzbDrone.Core/Datastore/Migration/112_Add_music_fields_to_NamingConfig.cs new file mode 100644 index 000000000..f48ce9988 --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/112_Add_music_fields_to_NamingConfig.cs @@ -0,0 +1,15 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(112)] + public class add_music_fields_to_namingconfig : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Alter.Table("NamingConfig").AddColumn("ArtistFolderFormat").AsAnsiString(); + Alter.Table("NamingConfig").AddColumn("AlbumFolderFormat").AsAnsiString(); + } + } +} diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj index 606293015..678b2e8da 100644 --- a/src/NzbDrone.Core/NzbDrone.Core.csproj +++ b/src/NzbDrone.Core/NzbDrone.Core.csproj @@ -288,6 +288,7 @@ +