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