gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet-core: make planchets.b


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: make planchets.byGroupAndIndex unique
Date: Fri, 15 Sep 2023 13:35:50 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new de117e375 wallet-core: make planchets.byGroupAndIndex unique
de117e375 is described below

commit de117e375a2a3cfa312acf4176276092f55205e0
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Sep 15 13:35:47 2023 +0200

    wallet-core: make planchets.byGroupAndIndex unique
---
 packages/taler-wallet-core/src/db.ts | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/packages/taler-wallet-core/src/db.ts 
b/packages/taler-wallet-core/src/db.ts
index 597cdf5a5..a5ead4d64 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -2434,10 +2434,13 @@ export const WalletStoresV1 = {
     "planchets",
     describeContents<PlanchetRecord>({ keyPath: "coinPub" }),
     {
-      byGroupAndIndex: describeIndex("byGroupAndIndex", [
-        "withdrawalGroupId",
-        "coinIdx",
-      ]),
+      byGroupAndIndex: describeIndex(
+        "byGroupAndIndex",
+        ["withdrawalGroupId", "coinIdx"],
+        {
+          unique: true,
+        },
+      ),
       byGroup: describeIndex("byGroup", "withdrawalGroupId"),
       byCoinEvHash: describeIndex("byCoinEv", "coinEvHash"),
     },

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]