59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init013 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DistrictCode",
|
|
table: "S_School");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Area",
|
|
table: "S_School",
|
|
type: "nvarchar(20)",
|
|
nullable: true,
|
|
comment: "所属区域");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "City",
|
|
table: "S_School",
|
|
type: "nvarchar(20)",
|
|
nullable: true,
|
|
comment: "所属城市");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Province",
|
|
table: "S_School",
|
|
type: "nvarchar(20)",
|
|
nullable: true,
|
|
comment: "所属省份");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Area",
|
|
table: "S_School");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "City",
|
|
table: "S_School");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Province",
|
|
table: "S_School");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DistrictCode",
|
|
table: "S_School",
|
|
type: "nvarchar(20)",
|
|
nullable: true,
|
|
comment: "学校名称");
|
|
}
|
|
}
|
|
} |