20240708143314_altrUserTask.cs 994 B

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