48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class init009 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "G_EntryStudent",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校编号");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "G_ActivitiesEntry",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校编号");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "G_Activities",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "学校编号");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "G_EntryStudent");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "G_ActivitiesEntry");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "SchoolCode",
|
|||
|
table: "G_Activities");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|