diff --git a/Valour/Database/Economy/Currency.cs b/Valour/Database/Economy/Currency.cs index 9941e1101..e52a2f3e4 100644 --- a/Valour/Database/Economy/Currency.cs +++ b/Valour/Database/Economy/Currency.cs @@ -62,5 +62,6 @@ public class Currency : ISharedCurrency /// Column to protect from concurrency errors /// [Timestamp] + [NotMapped] public uint RowVersion { get; set; } } \ No newline at end of file diff --git a/Valour/Database/Economy/EcoAccount.cs b/Valour/Database/Economy/EcoAccount.cs index 63009dad6..49c0dea65 100644 --- a/Valour/Database/Economy/EcoAccount.cs +++ b/Valour/Database/Economy/EcoAccount.cs @@ -67,5 +67,6 @@ public class EcoAccount : ISharedEcoAccount /// The RowVersion column prevents concurrency issues when updating the database /// [Timestamp] + [NotMapped] public uint RowVersion { get; set; } } \ No newline at end of file diff --git a/Valour/Database/Migrations/20250820152533_MigrateRefactor0.cs b/Valour/Database/Migrations/20250820152533_MigrateRefactor0.cs index d46096c6c..39ecbb95a 100644 --- a/Valour/Database/Migrations/20250820152533_MigrateRefactor0.cs +++ b/Valour/Database/Migrations/20250820152533_MigrateRefactor0.cs @@ -83,8 +83,7 @@ CREATE TABLE IF NOT EXISTS currencies ( short_code text, symbol text, issued bigint NOT NULL, - decimal_places integer NOT NULL, - xmin xid NOT NULL + decimal_places integer NOT NULL ); CREATE TABLE IF NOT EXISTS node_stats ( @@ -414,8 +413,7 @@ CREATE TABLE IF NOT EXISTS eco_accounts ( planet_id bigint NOT NULL, planet_member_id bigint, currency_id bigint NOT NULL, - balance_value numeric NOT NULL, - xmin xid NOT NULL + balance_value numeric NOT NULL ); CREATE TABLE IF NOT EXISTS messages ( diff --git a/Valour/Database/Migrations/ValourDbModelSnapshot.cs b/Valour/Database/Migrations/ValourDbModelSnapshot.cs index 251618fe9..531171619 100644 --- a/Valour/Database/Migrations/ValourDbModelSnapshot.cs +++ b/Valour/Database/Migrations/ValourDbModelSnapshot.cs @@ -452,12 +452,6 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("text") .HasColumnName("plural_name"); - b.Property("RowVersion") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("xid") - .HasColumnName("xmin"); - b.Property("ShortCode") .HasColumnType("text") .HasColumnName("short_code"); @@ -504,12 +498,6 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("bigint") .HasColumnName("planet_member_id"); - b.Property("RowVersion") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("xid") - .HasColumnName("xmin"); - b.Property("UserId") .HasColumnType("bigint") .HasColumnName("user_id");