2018-12-25 03:04:57 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
|
namespace Aaru.Database.Migrations
|
2018-12-25 03:04:57 +00:00
|
|
|
|
{
|
|
|
|
|
|
public partial class AddCdOffsets : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.CreateTable("CdOffsets",
|
|
|
|
|
|
table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Manufacturer = table.Column<string>(nullable: true),
|
|
|
|
|
|
Model = table.Column<string>(nullable: true),
|
|
|
|
|
|
Offset = table.Column<short>(nullable: false),
|
|
|
|
|
|
Submissions = table.Column<int>(nullable: false),
|
|
|
|
|
|
Agreement = table.Column<float>(nullable: false),
|
|
|
|
|
|
Id = table.Column<int>(nullable: false)
|
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
AddedWhen = table.Column<DateTime>(nullable: false),
|
|
|
|
|
|
ModifiedWhen = table.Column<DateTime>(nullable: false)
|
|
|
|
|
|
}, constraints: table => { table.PrimaryKey("PK_CdOffsets", x => x.Id); });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropTable("CdOffsets");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|