using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Drab.LocalDb.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Orders", columns: table => new { OrderId = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), DokId = table.Column(type: "INTEGER", nullable: false), Created = table.Column(type: "TEXT", nullable: false), IsPrinted = table.Column(type: "INTEGER", nullable: false), Filename = table.Column(type: "TEXT", nullable: true), Shop = table.Column(type: "TEXT", nullable: true), OrderNumber = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Orders", x => x.OrderId); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Orders"); } } }