38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class _20250114v2 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.RenameColumn(
|
|||
|
name: "Name",
|
|||
|
table: "XW_TestingProject",
|
|||
|
newName: "ProjectName");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "OrgId",
|
|||
|
table: "XW_TestingProject",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "OrgId");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "OrgId",
|
|||
|
table: "XW_TestingProject");
|
|||
|
|
|||
|
migrationBuilder.RenameColumn(
|
|||
|
name: "ProjectName",
|
|||
|
table: "XW_TestingProject",
|
|||
|
newName: "Name");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|