20260523074404_ExpandProductDescription.cs 1.1 KB

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