From ec949be7890dc5e77cc98df86c0d0b9603bd2e9a Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 19 Jun 2011 11:28:18 -0700 Subject: [PATCH] Removing "Histories" on migration. --- .../{Migration.cs => Migration20110616.cs} | 0 .../Datastore/Migrations/Migration20110619.cs | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+) rename NzbDrone.Core/Datastore/Migrations/{Migration.cs => Migration20110616.cs} (100%) create mode 100644 NzbDrone.Core/Datastore/Migrations/Migration20110619.cs diff --git a/NzbDrone.Core/Datastore/Migrations/Migration.cs b/NzbDrone.Core/Datastore/Migrations/Migration20110616.cs similarity index 100% rename from NzbDrone.Core/Datastore/Migrations/Migration.cs rename to NzbDrone.Core/Datastore/Migrations/Migration20110616.cs diff --git a/NzbDrone.Core/Datastore/Migrations/Migration20110619.cs b/NzbDrone.Core/Datastore/Migrations/Migration20110619.cs new file mode 100644 index 000000000..9be21b431 --- /dev/null +++ b/NzbDrone.Core/Datastore/Migrations/Migration20110619.cs @@ -0,0 +1,24 @@ +using System; +using System.Data; +using Migrator.Framework; + +namespace NzbDrone.Core.Datastore.Migrations +{ + + [Migration(20110619)] + public class Migration20110619 : Migration + { + public override void Up() + { + if (Database.TableExists("Histories")) + { + Database.RemoveTable("Histories"); + } + } + + public override void Down() + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file