mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-26 04:33:01 +01:00
Removing "Histories" on migration.
This commit is contained in:
parent
f211f99960
commit
ec949be789
24
NzbDrone.Core/Datastore/Migrations/Migration20110619.cs
Normal file
24
NzbDrone.Core/Datastore/Migrations/Migration20110619.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user