20260702142531_AddWalletBalanceRowVersion.cs 842 B

123456789101112131415161718192021222324252627282930
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddWalletBalanceRowVersion : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<byte[]>(
  12. name: "RowVersion",
  13. table: "WalletBalance",
  14. type: "rowversion",
  15. rowVersion: true,
  16. nullable: false,
  17. defaultValue: new byte[0]);
  18. }
  19. /// <inheritdoc />
  20. protected override void Down(MigrationBuilder migrationBuilder)
  21. {
  22. migrationBuilder.DropColumn(
  23. name: "RowVersion",
  24. table: "WalletBalance");
  25. }
  26. }
  27. }