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