75 lines
2.3 KiB
C#
75 lines
2.3 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class init068 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_TrainingData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "课堂记录Id");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_SportsTestData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "课堂记录Id");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_LevelExamData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "课堂记录Id");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_HeartRateData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "课堂记录Id");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_ActivitiestData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "课堂记录Id");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_TrainingData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_SportsTestData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_LevelExamData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_HeartRateData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "ClassRoomRecordId",
|
|||
|
table: "Ai_ActivitiestData");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|