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

79 lines
2.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init016 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "Standing",
table: "I_SportsTestData",
type: "float",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "Speedeight",
table: "I_SportsTestData",
type: "float",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "Kilometer",
table: "I_SportsTestData",
type: "float",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "Hectometer",
table: "I_SportsTestData",
type: "float",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Standing",
table: "I_SportsTestData",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<int>(
name: "Speedeight",
table: "I_SportsTestData",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<int>(
name: "Kilometer",
table: "I_SportsTestData",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "float");
migrationBuilder.AlterColumn<int>(
name: "Hectometer",
table: "I_SportsTestData",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "float");
}
}
}