QualityProvider moved to PetaPoco.

This commit is contained in:
Mark McDowall
2011-06-17 13:31:25 -07:00
parent 9daf1ccfc0
commit 446a939f45
4 changed files with 36 additions and 22 deletions

View File

@@ -93,7 +93,7 @@ namespace NzbDrone.Core.Datastore.Migrations
Database.AddTable("History", "SQLite", new[]
{
new Column("HistoryId", DbType.Int64, ColumnProperty.NotNull),
new Column("HistoryId", DbType.Int64, ColumnProperty.PrimaryKey),
new Column("EpisodeId", DbType.Int32, ColumnProperty.NotNull),
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
new Column("NzbTitle", DbType.String, ColumnProperty.NotNull),
@@ -127,6 +127,14 @@ namespace NzbDrone.Core.Datastore.Migrations
new Column("LastExecution", DbType.DateTime, ColumnProperty.NotNull),
new Column("Success", DbType.Boolean, ColumnProperty.NotNull)
});
Database.AddTable("QualityProfiles", "SQLite", new[]
{
new Column("QualityProfileId", DbType.Int32, ColumnProperty.PrimaryKey),
new Column("Name", DbType.String, ColumnProperty.NotNull),
new Column("Cutoff", DbType.Int32, ColumnProperty.NotNull),
new Column("SonicAllowed", DbType.String, ColumnProperty.NotNull),
});
}
public override void Down()