20240225123213_UserTasks2.cs 1.2 KB

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