120 lines
3.6 KiB
C#
120 lines
3.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init085 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ClassId",
|
|
table: "Ai_HeartRateData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "班级Id");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ClassName",
|
|
table: "Ai_HeartRateData",
|
|
type: "nvarchar(100)",
|
|
nullable: true,
|
|
comment: "班级名称");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "GradeId",
|
|
table: "Ai_HeartRateData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "年级编号");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "GradeName",
|
|
table: "Ai_HeartRateData",
|
|
type: "nvarchar(100)",
|
|
nullable: true,
|
|
comment: "年级名称");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Sex",
|
|
table: "Ai_HeartRateData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "学校Co性别de");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "StudentCount",
|
|
table: "Ai_HeartRateData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "班级人数");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StudentName",
|
|
table: "Ai_HeartRateData",
|
|
type: "nvarchar(100)",
|
|
nullable: true,
|
|
comment: "姓名");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StudentNo",
|
|
table: "Ai_HeartRateData",
|
|
type: "nvarchar(100)",
|
|
nullable: true,
|
|
comment: "学号");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TeacherId",
|
|
table: "Ai_HeartRateData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "老师Id");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ClassId",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ClassName",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "GradeId",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "GradeName",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Sex",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StudentCount",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StudentName",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StudentNo",
|
|
table: "Ai_HeartRateData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TeacherId",
|
|
table: "Ai_HeartRateData");
|
|
}
|
|
}
|
|
}
|