fix(pickup): prevent null rowversion on settings and slots save
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 43s
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 43s
This commit is contained in:
@@ -1093,7 +1093,9 @@ public sealed class TakeoutAppDbContext(
|
||||
builder.Property(x => x.Mode).HasConversion<int>();
|
||||
builder.Property(x => x.FineRuleJson).HasColumnType("text");
|
||||
builder.Property(x => x.RowVersion)
|
||||
.IsConcurrencyToken();
|
||||
.IsRequired()
|
||||
.IsConcurrencyToken()
|
||||
.ValueGeneratedNever();
|
||||
builder.HasIndex(x => new { x.TenantId, x.StoreId }).IsUnique();
|
||||
}
|
||||
|
||||
@@ -1106,7 +1108,9 @@ public sealed class TakeoutAppDbContext(
|
||||
builder.Property(x => x.Weekdays).HasMaxLength(32).IsRequired();
|
||||
builder.Property(x => x.CutoffMinutes).HasDefaultValue(30);
|
||||
builder.Property(x => x.RowVersion)
|
||||
.IsConcurrencyToken();
|
||||
.IsRequired()
|
||||
.IsConcurrencyToken()
|
||||
.ValueGeneratedNever();
|
||||
builder.HasIndex(x => new { x.TenantId, x.StoreId, x.Name });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user