using System; using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class AddPostponementStatus : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "postponement_status", table: "eva_adjust_postponement", maxLength: 5, nullable: true); migrationBuilder.AddColumn( name: "postponement_status_by", table: "eva_adjust_postponement", maxLength: 255, nullable: true); migrationBuilder.AddColumn( name: "postponement_status_date", table: "eva_adjust_postponement", nullable: true); migrationBuilder.AddColumn( name: "postponement_status_note", table: "eva_adjust_postponement", maxLength: 1000, nullable: true); migrationBuilder.AddColumn( name: "quota_status", table: "eva_adjust_postponement", maxLength: 5, nullable: true); migrationBuilder.AddColumn( name: "quota_status_by", table: "eva_adjust_postponement", maxLength: 255, nullable: true); migrationBuilder.AddColumn( name: "quota_status_date", table: "eva_adjust_postponement", nullable: true); migrationBuilder.AddColumn( name: "quota_status_note", table: "eva_adjust_postponement", maxLength: 1000, nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "postponement_status", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "postponement_status_by", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "postponement_status_date", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "postponement_status_note", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "quota_status", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "quota_status_by", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "quota_status_date", table: "eva_adjust_postponement"); migrationBuilder.DropColumn( name: "quota_status_note", table: "eva_adjust_postponement"); } } }