60 lines
1.7 KiB
C#
60 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init033 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Gender",
|
|
table: "Ai_Result",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "性别");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Height",
|
|
table: "Ai_Result",
|
|
type: "float",
|
|
nullable: true,
|
|
comment: "身高");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StudentName",
|
|
table: "Ai_Result",
|
|
type: "nvarchar(1000)",
|
|
nullable: true,
|
|
comment: "学生姓名");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Weight",
|
|
table: "Ai_Result",
|
|
type: "float",
|
|
nullable: true,
|
|
comment: "体重");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Gender",
|
|
table: "Ai_Result");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Height",
|
|
table: "Ai_Result");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StudentName",
|
|
table: "Ai_Result");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Weight",
|
|
table: "Ai_Result");
|
|
}
|
|
}
|
|
} |