611 lines
20 KiB
C#
611 lines
20 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using System;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init065 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitNumber",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitTime",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TeacherPhone",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalRound",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalTime",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingModule",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingTime",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingType",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Height",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitNumber",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitTime",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TeacherPhone",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalNumber",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalRound",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalTime",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingModule",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingTime",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingType",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Weight",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Height",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitNumber",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitTime",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StudentCount",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TeacherPhone",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalNumber",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalRound",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalTime",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingModule",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingTime",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TrainingType",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Weight",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "UploadTime",
|
|
table: "Ai_TrainingData",
|
|
type: "datetime",
|
|
nullable: true,
|
|
comment: "上传时间");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "UploadTime",
|
|
table: "Ai_SportsTestData",
|
|
type: "datetime",
|
|
nullable: true,
|
|
comment: "上传时间");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_LevelExamData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "MotionDuration",
|
|
table: "Ai_LevelExamData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动时长/分钟",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动时长/分钟");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_LevelExamData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "UploadTime",
|
|
table: "Ai_LevelExamData",
|
|
type: "datetime",
|
|
nullable: true,
|
|
comment: "上传时间");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "UploadTime",
|
|
table: "Ai_ActivitiestData",
|
|
type: "datetime",
|
|
nullable: true,
|
|
comment: "上传时间");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "UploadTime",
|
|
table: "Ai_TrainingData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UploadTime",
|
|
table: "Ai_SportsTestData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UploadTime",
|
|
table: "Ai_LevelExamData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UploadTime",
|
|
table: "Ai_ActivitiestData");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LimitNumber",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "限数");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LimitTime",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "限时");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TeacherPhone",
|
|
table: "Ai_TrainingData",
|
|
type: "varchar(11)",
|
|
nullable: true,
|
|
comment: "老师手机号");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalRound",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "总轮次");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalTime",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "限时限数总耗时");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingModule",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "训练模块");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingTime",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "训练倒计时时间 (1, 2 分钟)");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingType",
|
|
table: "Ai_TrainingData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "标准赛类型");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Height",
|
|
table: "Ai_SportsTestData",
|
|
type: "float",
|
|
nullable: true,
|
|
comment: "身高");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LimitNumber",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "限数");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LimitTime",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "限时");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TeacherPhone",
|
|
table: "Ai_SportsTestData",
|
|
type: "varchar(11)",
|
|
nullable: true,
|
|
comment: "老师手机号");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalNumber",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "参与人数");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalRound",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "总轮次");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalTime",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "限时限数总耗时");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingModule",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "训练模块");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingTime",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "训练倒计时时间 (1, 2 分钟)");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingType",
|
|
table: "Ai_SportsTestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "标准赛类型");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Weight",
|
|
table: "Ai_SportsTestData",
|
|
type: "float",
|
|
nullable: true,
|
|
comment: "体重");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_LevelExamData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "MotionDuration",
|
|
table: "Ai_LevelExamData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动时长/分钟",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动时长/分钟");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_LevelExamData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Strength",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动强度",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动强度");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Consumption",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "运动消耗",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "运动消耗");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Height",
|
|
table: "Ai_ActivitiestData",
|
|
type: "float",
|
|
nullable: true,
|
|
comment: "身高");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LimitNumber",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "限数");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LimitTime",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "限时");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "StudentCount",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "班级人数");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TeacherPhone",
|
|
table: "Ai_ActivitiestData",
|
|
type: "varchar(11)",
|
|
nullable: true,
|
|
comment: "老师手机号");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalNumber",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "参与人数");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalRound",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "总轮次");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TotalTime",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "限时限数总耗时");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingModule",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "训练模块");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingTime",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "训练倒计时时间 (1, 2 分钟)");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TrainingType",
|
|
table: "Ai_ActivitiestData",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "标准赛类型");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Weight",
|
|
table: "Ai_ActivitiestData",
|
|
type: "float",
|
|
nullable: true,
|
|
comment: "体重");
|
|
}
|
|
}
|
|
} |