40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace YD_WeChatApplet.Api.Migrations
|
|
{
|
|
public partial class _20250427v2 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CategoryKey",
|
|
table: "WCA_Category",
|
|
type: "nvarchar(100)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "运动类型Key");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "kcalIndex",
|
|
table: "WCA_Category",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "卡路里指数");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CategoryKey",
|
|
table: "WCA_Category");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "kcalIndex",
|
|
table: "WCA_Category");
|
|
}
|
|
}
|
|
}
|