YD_SmartSports.Api/VOL.Core/Migrations/20241115143815_init091.cs

61 lines
1.8 KiB
C#
Raw Permalink Normal View History

2025-06-06 16:00:39 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init091 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<float>(
name: "Value",
table: "Ai_HeartRateData",
type: "float",
nullable: false,
defaultValue: 0.0f,
comment: "心率",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "心率");
migrationBuilder.AlterColumn<int>(
name: "Strength",
table: "Ai_HeartRateData",
type: "int",
nullable: false,
defaultValue: 0,
comment: "运动强度",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "运动强度");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Value",
table: "Ai_HeartRateData",
type: "int",
nullable: true,
comment: "心率",
oldClrType: typeof(double),
oldType: "double",
oldComment: "心率");
migrationBuilder.AlterColumn<int>(
name: "Strength",
table: "Ai_HeartRateData",
type: "int",
nullable: true,
comment: "运动强度",
oldClrType: typeof(int),
oldType: "int",
oldComment: "运动强度");
}
}
}