70 lines
2.1 KiB
C#
70 lines
2.1 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class init041 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialUnit");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialTraining");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialTeaching");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialChapter");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_Special");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialUnit",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校Code");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialTraining",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校Code");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialTeaching",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校Code");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_SpecialChapter",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校Code");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "I_Special",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校Code");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|