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( name: "Area", table: "S_School", type: "nvarchar(20)", nullable: true, comment: "所属区域"); migrationBuilder.AddColumn( name: "City", table: "S_School", type: "nvarchar(20)", nullable: true, comment: "所属城市"); migrationBuilder.AddColumn( 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( name: "DistrictCode", table: "S_School", type: "nvarchar(20)", nullable: true, comment: "学校名称"); } } }