28 lines
728 B
C#
28 lines
728 B
C#
![]() |
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|