1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-27 10:19:41 +00:00
Radarr/NzbDrone.Services/NzbDrone.Services.Service/Migrations/Migration20120201.cs

50 lines
No EOL
2.2 KiB
C#

using System;
using System.Data;
using Migrator.Framework;
namespace NzbDrone.Services.Service.Migrations
{
[Migration(20120201)]
public class Migration20120201 : Migration
{
public override void Up()
{
Database.AddTable("SceneMappings", new[]
{
new Column("CleanTitle", DbType.String, ColumnProperty.PrimaryKey),
new Column("Id", DbType.Int32, ColumnProperty.NotNull),
new Column("Title", DbType.String, ColumnProperty.NotNull)
});
Database.AddTable("PendingSceneMappings", new[]
{
new Column("CleanTitle", DbType.String, ColumnProperty.PrimaryKey),
new Column("Id", DbType.Int32, ColumnProperty.NotNull),
new Column("Title", DbType.String, ColumnProperty.NotNull)
});
Database.AddTable("DailySeries", new[]
{
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKey),
new Column("Title", DbType.String, ColumnProperty.NotNull)
});
Database.AddTable("ParseErrorReports", new[]
{
new Column("Title", DbType.String,1000, ColumnProperty.PrimaryKey),
MigrationsHelper.UGuidColumn,
MigrationsHelper.TimestampColumn,
MigrationsHelper.VersionColumn,
MigrationsHelper.ProductionColumn
});
}
public override void Down()
{
throw new NotImplementedException();
}
}
}