YD_SmartSports.Api/VOL.Core/Migrations/20240531071304_init017.cs
2025-06-06 16:00:39 +08:00

231 lines
7.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init017 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "Weight",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<double>(
name: "Standing",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<double>(
name: "Speedeight",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<double>(
name: "Speed",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<int>(
name: "Situp",
table: "I_SportsTestData",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<int>(
name: "Rope",
table: "I_SportsTestData",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<int>(
name: "Pulmonary",
table: "I_SportsTestData",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "Pliable",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<double>(
name: "Kilometer",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<double>(
name: "Height",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<double>(
name: "Hectometer",
table: "I_SportsTestData",
type: "float",
nullable: true,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<int>(
name: "Chinning",
table: "I_SportsTestData",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "Weight",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Standing",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Speedeight",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Speed",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "Situp",
table: "I_SportsTestData",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "Rope",
table: "I_SportsTestData",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "Pulmonary",
table: "I_SportsTestData",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Pliable",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Kilometer",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Height",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<double>(
name: "Hectometer",
table: "I_SportsTestData",
type: "float",
nullable: false,
defaultValue: 0.0,
oldClrType: typeof(double),
oldType: "float",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "Chinning",
table: "I_SportsTestData",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true);
}
}
}