commit 85c8b8404b81c69cfe956284808ecb801a38240f
parent 2e1c4be3081e85386ea9cca6f65357ce687ea87e
Author: Iván Ávalos <avalos@disroot.org>
Date: Wed, 7 May 2025 22:12:19 +0200
wallet-core: add missing indices and bump db version to 17
Diffstat:
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
@@ -162,7 +162,7 @@ export const CURRENT_DB_CONFIG_KEY = "currentMainDbName";
* backwards-compatible way or object stores and indices
* are added.
*/
-export const WALLET_DB_MINOR_VERSION = 16;
+export const WALLET_DB_MINOR_VERSION = 17;
declare const symDbProtocolTimestamp: unique symbol;
@@ -2868,11 +2868,16 @@ export const WalletStoresV1 = {
byTokenIssuePubHash: describeIndex(
"byTokenIssuePubHash",
"tokenIssuePubHash",
+ {
+ versionAdded: 17,
+ },
),
byPurchaseIdAndChoiceIndex: describeIndex("byPurchaseIdAndChoiceIndex", [
"purchaseId",
"choiceIndex",
- ]),
+ ], {
+ versionAdded: 17,
+ }),
},
),
slates: describeStore(
@@ -2885,10 +2890,15 @@ export const WalletStoresV1 = {
byPurchaseIdAndChoiceIndex: describeIndex("byPurchaseIdAndChoiceIndex", [
"purchaseId",
"choiceIndex",
- ]),
+ ], {
+ versionAdded: 17,
+ }),
byPurchaseIdAndChoiceIndexAndOutputIndex: describeIndex(
"byPurchaseIdAndChoiceIndexAndOutputIndex",
["purchaseId", "choiceIndex", "outputIndex"],
+ {
+ versionAdded: 17,
+ },
),
},
),