28 lines
742 B
C#
28 lines
742 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace YD_WeChatApplet.Api.Migrations
|
|
{
|
|
public partial class _20250520v2 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "DataSource",
|
|
table: "WCA_ExerciseData",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "数据来源");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DataSource",
|
|
table: "WCA_ExerciseData");
|
|
}
|
|
}
|
|
}
|