20241119221720_altrAllow.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace MTWorkHR.Infrastructure.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class altrAllow : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "PaymentType",
  13. table: "ContractAllowance",
  14. type: "nvarchar(max)",
  15. nullable: true,
  16. oldClrType: typeof(int),
  17. oldType: "int");
  18. }
  19. /// <inheritdoc />
  20. protected override void Down(MigrationBuilder migrationBuilder)
  21. {
  22. migrationBuilder.AlterColumn<int>(
  23. name: "PaymentType",
  24. table: "ContractAllowance",
  25. type: "int",
  26. nullable: false,
  27. defaultValue: 0,
  28. oldClrType: typeof(string),
  29. oldType: "nvarchar(max)",
  30. oldNullable: true);
  31. }
  32. }
  33. }