20260523073331_AddShipmentBillingFields.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Persistence.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class AddShipmentBillingFields : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<string>(
  12. name: "AdminMemo",
  13. table: "Shipment",
  14. type: "nvarchar(500)",
  15. maxLength: 500,
  16. nullable: true);
  17. migrationBuilder.AddColumn<int>(
  18. name: "ShippingFee",
  19. table: "Shipment",
  20. type: "int",
  21. nullable: false,
  22. defaultValue: 0);
  23. }
  24. /// <inheritdoc />
  25. protected override void Down(MigrationBuilder migrationBuilder)
  26. {
  27. migrationBuilder.DropColumn(
  28. name: "AdminMemo",
  29. table: "Shipment");
  30. migrationBuilder.DropColumn(
  31. name: "ShippingFee",
  32. table: "Shipment");
  33. }
  34. }
  35. }