45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init12121 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
var tables = new[] {
|
|
"N_SportsTestValue",
|
|
"I_TrainRanking",
|
|
"I_TrainingData",
|
|
"I_SportsTestData",
|
|
"Ai_SportsTestData",
|
|
"Ai_LevelExamData",
|
|
"Ai_HeartRateData",
|
|
"Ai_FastJumpRopeData",
|
|
"Ai_ClassroomStudentRecord",
|
|
"Ai_ClassRoomRecord",
|
|
"Ai_ActivitiestData"
|
|
};
|
|
|
|
foreach (var table in tables)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsDisplay",
|
|
table: table,
|
|
type: "bit",
|
|
nullable: false,
|
|
comment: "是否显示",
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldComment: "是否显示");
|
|
}
|
|
}
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
}
|
|
}
|
|
}
|