using System; using Microsoft.EntityFrameworkCore.Migrations; namespace DiscImageChef.Database.Migrations { public partial class AddCdOffsets : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable("CdOffsets", table => new { Manufacturer = table.Column(nullable: true), Model = table.Column(nullable: true), Offset = table.Column(nullable: false), Submissions = table.Column(nullable: false), Agreement = table.Column(nullable: false), Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), AddedWhen = table.Column(nullable: false), ModifiedWhen = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_CdOffsets", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable("CdOffsets"); } } }