60 lines
1.7 KiB
C#
60 lines
1.7 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class init089 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "AvgValue",
|
|||
|
table: "Ai_HeartRateData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "MaxValue",
|
|||
|
table: "Ai_HeartRateData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "MinValue",
|
|||
|
table: "Ai_HeartRateData");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "Value",
|
|||
|
table: "Ai_HeartRateData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "心率");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Value",
|
|||
|
table: "Ai_HeartRateData");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "AvgValue",
|
|||
|
table: "Ai_HeartRateData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "平均心率");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "MaxValue",
|
|||
|
table: "Ai_HeartRateData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "最大心率");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "MinValue",
|
|||
|
table: "Ai_HeartRateData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "最小心率");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|