using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace MTWorkHR.Infrastructure.Migrations { /// public partial class altrContractDura : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "JobTitleId", table: "Contracts"); migrationBuilder.AddColumn( name: "JobTitleName", table: "Contracts", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "WorkingHoursNum", table: "Contracts", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AlterColumn( name: "EntitlementPercent", table: "ContractAllowance", type: "decimal(18,2)", nullable: false, oldClrType: typeof(long), oldType: "bigint"); migrationBuilder.AlterColumn( name: "EntitlementAmount", table: "ContractAllowance", type: "decimal(18,2)", nullable: false, oldClrType: typeof(long), oldType: "bigint"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "JobTitleName", table: "Contracts"); migrationBuilder.DropColumn( name: "WorkingHoursNum", table: "Contracts"); migrationBuilder.AddColumn( name: "JobTitleId", table: "Contracts", type: "int", nullable: true); migrationBuilder.AlterColumn( name: "EntitlementPercent", table: "ContractAllowance", type: "bigint", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(18,2)"); migrationBuilder.AlterColumn( name: "EntitlementAmount", table: "ContractAllowance", type: "bigint", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(18,2)"); } } }