ปรับปรุงรายงานกรอบวงเงิน
This commit is contained in:
44
Migrations/25640302040600_RemoveLimitFrameGroupColumn.cs
Normal file
44
Migrations/25640302040600_RemoveLimitFrameGroupColumn.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace tb320eva.Migrations
|
||||
{
|
||||
public partial class RemoveLimitFrameGroupColumn : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_eva_limit_frame_employee_eva_limit_frame_group_limit_frame_~",
|
||||
table: "eva_limit_frame_employee");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_eva_limit_frame_employee_limit_frame_group_id",
|
||||
table: "eva_limit_frame_employee");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "limit_frame_group_id",
|
||||
table: "eva_limit_frame_employee");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "limit_frame_group_id",
|
||||
table: "eva_limit_frame_employee",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_eva_limit_frame_employee_limit_frame_group_id",
|
||||
table: "eva_limit_frame_employee",
|
||||
column: "limit_frame_group_id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_eva_limit_frame_employee_eva_limit_frame_group_limit_frame_~",
|
||||
table: "eva_limit_frame_employee",
|
||||
column: "limit_frame_group_id",
|
||||
principalTable: "eva_limit_frame_group",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user