YD_WeChatApplet.Api/WeChatApplet/Migrations/20241005142228_init002.cs

28 lines
728 B
C#
Raw Permalink Normal View History

2025-06-06 14:57:20 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YD_WeChatApplet.Api.Migrations
{
public partial class init002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SchoolCode",
table: "User",
type: "nvarchar(100)",
nullable: false,
defaultValue: "",
comment: "学校编号");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SchoolCode",
table: "User");
}
}
}