20240327101748_altrcompany.cs 977 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace MTWorkHR.Infrastructure.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class altrcompany : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "UserId",
  13. table: "Companies",
  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: "UserId",
  24. table: "Companies",
  25. type: "bigint",
  26. nullable: false,
  27. oldClrType: typeof(string),
  28. oldType: "nvarchar(max)");
  29. }
  30. }
  31. }