223 lines
7.1 KiB
C#
223 lines
7.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init018 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "StuAgileSpeedTimeNumber",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "SpeedTime",
|
|
table: "I_TankingLData",
|
|
type: "float",
|
|
nullable: true,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "SecondsNumber",
|
|
table: "I_TankingLData",
|
|
type: "float",
|
|
nullable: true,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ResultLevel",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ModelName",
|
|
table: "I_TankingLData",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "LowHeartRate",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "JumpValue",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "HighHeartRate",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "HeartRatePercentage",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ErrorNumber",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Efficiency",
|
|
table: "I_TankingLData",
|
|
type: "float",
|
|
nullable: true,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SchoolCode",
|
|
table: "I_TankingLData",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SchoolCode",
|
|
table: "I_TankingLData");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "StuAgileSpeedTimeNumber",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "SpeedTime",
|
|
table: "I_TankingLData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
oldClrType: typeof(double),
|
|
oldType: "float",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "SecondsNumber",
|
|
table: "I_TankingLData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
oldClrType: typeof(double),
|
|
oldType: "float",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ResultLevel",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ModelName",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "LowHeartRate",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "JumpValue",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "HighHeartRate",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "HeartRatePercentage",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ErrorNumber",
|
|
table: "I_TankingLData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Efficiency",
|
|
table: "I_TankingLData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
oldClrType: typeof(double),
|
|
oldType: "float",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
} |