mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.4 KiB
35 lines
1.4 KiB
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<int>(type: "int", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Year = table.Column<int>(type: "int", nullable: false),
|
|
Month = table.Column<byte>(type: "tinyint", nullable: false),
|
|
Day = table.Column<byte>(type: "tinyint", nullable: false),
|
|
TotalCount = table.Column<int>(type: "int", nullable: false),
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
ConcurrencyStamp = table.Column<string>(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");
|
|
}
|
|
}
|
|
}
|