diff options
author | Florian Dold <florian@dold.me> | 2020-11-16 14:12:37 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2020-11-16 14:12:37 +0100 |
commit | 292160f7e979a0d9fdea7430f0d26b2dc1122a16 (patch) | |
tree | f82a576398408ebbe04d96a93355de61d745c925 /packages/taler-wallet-core/src/types | |
parent | cdf5cc583cd7fc938f38137da25aaee2aeaf28a9 (diff) | |
download | wallet-core-292160f7e979a0d9fdea7430f0d26b2dc1122a16.tar.gz wallet-core-292160f7e979a0d9fdea7430f0d26b2dc1122a16.tar.bz2 wallet-core-292160f7e979a0d9fdea7430f0d26b2dc1122a16.zip |
fix tip record creation, migrate DB
Diffstat (limited to 'packages/taler-wallet-core/src/types')
-rw-r--r-- | packages/taler-wallet-core/src/types/dbTypes.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts index 8f6c22f22..ed3a18ae1 100644 --- a/packages/taler-wallet-core/src/types/dbTypes.ts +++ b/packages/taler-wallet-core/src/types/dbTypes.ts @@ -361,7 +361,6 @@ export enum DenominationStatus { VerifiedBad, } - /** * Denomination record as stored in the wallet's database. */ @@ -640,7 +639,7 @@ export interface PlanchetRecord { /** * Public key of the reserve that this planchet * is being withdrawn from. - * + * * Can be the empty string (non-null/undefined for DB indexing) * if this is a tipping reserve. */ @@ -1532,7 +1531,6 @@ export enum ImportPayloadType { CoreSchema = "core-schema", } - class ExchangesStore extends Store<ExchangeRecord> { constructor() { super("exchanges", { keyPath: "baseUrl" }); @@ -1624,6 +1622,15 @@ class TipsStore extends Store<TipRecord> { constructor() { super("tips", { keyPath: "walletTipId" }); } + // Added in version 2 + byMerchantTipIdAndBaseUrl = new Index<[string, string], TipRecord>( + this, + "tipsByMerchantTipIdAndOriginIndex", + ["merchantTipId", "merchantBaseUrl"], + { + versionAdded: 2, + } + ); } class WithdrawalGroupsStore extends Store<WithdrawalGroupRecord> { |