20260704230951_WidenTransactionIDForTossPaymentKey.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class WidenTransactionIDForTossPaymentKey : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "TransactionID",
  13. table: "PaymentReconcileLog",
  14. type: "nvarchar(200)",
  15. maxLength: 200,
  16. nullable: true,
  17. oldClrType: typeof(string),
  18. oldType: "nvarchar(64)",
  19. oldMaxLength: 64,
  20. oldNullable: true);
  21. migrationBuilder.AlterColumn<string>(
  22. name: "TransactionID",
  23. table: "PaymentOrder",
  24. type: "nvarchar(200)",
  25. maxLength: 200,
  26. nullable: true,
  27. oldClrType: typeof(string),
  28. oldType: "nvarchar(64)",
  29. oldMaxLength: 64,
  30. oldNullable: true);
  31. }
  32. /// <inheritdoc />
  33. protected override void Down(MigrationBuilder migrationBuilder)
  34. {
  35. migrationBuilder.AlterColumn<string>(
  36. name: "TransactionID",
  37. table: "PaymentReconcileLog",
  38. type: "nvarchar(64)",
  39. maxLength: 64,
  40. nullable: true,
  41. oldClrType: typeof(string),
  42. oldType: "nvarchar(200)",
  43. oldMaxLength: 200,
  44. oldNullable: true);
  45. migrationBuilder.AlterColumn<string>(
  46. name: "TransactionID",
  47. table: "PaymentOrder",
  48. type: "nvarchar(64)",
  49. maxLength: 64,
  50. nullable: true,
  51. oldClrType: typeof(string),
  52. oldType: "nvarchar(200)",
  53. oldMaxLength: 200,
  54. oldNullable: true);
  55. }
  56. }
  57. }