26 lines
778 B
C#
26 lines
778 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Ewide.Database.Migrations.Migrations
|
|
{
|
|
public partial class removeAreaNumberParent : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ParentCode",
|
|
table: "ewide_area_number");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ParentCode",
|
|
table: "ewide_area_number",
|
|
type: "varchar(10) CHARACTER SET utf8mb4",
|
|
maxLength: 10,
|
|
nullable: true,
|
|
comment: "父级区域代码");
|
|
}
|
|
}
|
|
}
|