using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { /// public partial class AddDnaIKdtoLeaveRequest : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Child1DnaId", table: "LeaveRequests", type: "char(36)", nullable: true, collation: "ascii_general_ci"); migrationBuilder.AddColumn( name: "Child2DnaId", table: "LeaveRequests", type: "char(36)", nullable: true, collation: "ascii_general_ci"); migrationBuilder.AddColumn( name: "Child3DnaId", table: "LeaveRequests", type: "char(36)", nullable: true, collation: "ascii_general_ci"); migrationBuilder.AddColumn( name: "Child4DnaId", table: "LeaveRequests", type: "char(36)", nullable: true, collation: "ascii_general_ci"); migrationBuilder.AddColumn( name: "RootDnaId", table: "LeaveRequests", type: "char(36)", nullable: true, collation: "ascii_general_ci"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Child1DnaId", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "Child2DnaId", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "Child3DnaId", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "Child4DnaId", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "RootDnaId", table: "LeaveRequests"); } } }