Files
Yi.Admin/CC.Yi.API/Migrations/20210413063257_y1.cs

30 lines
907 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-13 01:39:34 +08:00
public partial class y1 : Migration
2021-03-20 14:12:24 +08:00
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "student",
columns: table => new
{
2021-05-13 01:39:34 +08:00
id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
name = table.Column<string>(type: "TEXT", nullable: true)
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");
}
}
}