เพิ่มฟิลเพื่อรองรับการจัดข้อมูลเก่า

This commit is contained in:
Nakorn Rientrakrunchai
2020-12-21 21:44:54 +07:00
parent 60eec3b098
commit 1b60be5236
21 changed files with 813 additions and 9 deletions

View File

@@ -0,0 +1,32 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace tb320eva.Migrations
{
public partial class AddNewColumn01 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "order_at_this_time",
table: "eva_adjust_postponement_detail",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "report_type",
table: "eva_adjust_postponement",
maxLength: 1000,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "order_at_this_time",
table: "eva_adjust_postponement_detail");
migrationBuilder.DropColumn(
name: "report_type",
table: "eva_adjust_postponement");
}
}
}