using Microsoft.EntityFrameworkCore.Migrations; namespace DistDemoApp.Migrations { public partial class Added_Summary_Table : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TodoSummaries", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Year = table.Column(type: "int", nullable: false), Month = table.Column(type: "tinyint", nullable: false), Day = table.Column(type: "tinyint", nullable: false), TotalCount = table.Column(type: "int", nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) }, constraints: table => { table.PrimaryKey("PK_TodoSummaries", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TodoSummaries"); } } }