Removing "Histories" on migration.

This commit is contained in:
kay.one 2011-06-19 11:28:18 -07:00
parent f211f99960
commit ec949be789
2 changed files with 24 additions and 0 deletions

View File

@ -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();
}
}
}