Files
Yi.Admin/CC.Yi.Old/CC.Yi.API/Migrations/20210319112041_yi1.cs

30 lines
901 B
C#
Raw Normal View History

2021-03-20 14:12:24 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
namespace CC.Yi.API.Migrations
{
2021-05-31 21:41:27 +08:00
public partial class yi1 : Migration
2021-03-20 14:12:24 +08:00
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "student",
columns: table => new
{
2021-05-31 21:41:27 +08:00
id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
name = table.Column<int>(type: "int", nullable: false)
2021-03-20 14:12:24 +08:00
},
constraints: table =>
{
table.PrimaryKey("PK_student", x => x.id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "student");
}
}
}