From 8d19b801538e2be842ebe2d03ca464f72bb95edb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 23 Sep 2022 21:00:51 +0200 Subject: wallet-core: backwards compatibility for bankAccounts store, naming conventions --- packages/taler-wallet-core/src/util/query.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/taler-wallet-core/src/util') diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts index 71d7b9783..47f38a3a1 100644 --- a/packages/taler-wallet-core/src/util/query.ts +++ b/packages/taler-wallet-core/src/util/query.ts @@ -284,17 +284,29 @@ export interface IndexDescriptor { keyPath: IDBKeyPath | IDBKeyPath[]; multiEntry?: boolean; unique?: boolean; + versionAdded?: number; } export interface StoreDescriptor { _dummy: undefined & RecordType; keyPath?: IDBKeyPath | IDBKeyPath[]; autoIncrement?: boolean; + /** + * Database version that this store was added in, or + * undefined if added in the first version. + */ + versionAdded?: number; } export interface StoreOptions { keyPath?: IDBKeyPath | IDBKeyPath[]; autoIncrement?: boolean; + + /** + * Database version that this store was added in, or + * undefined if added in the first version. + */ + versionAdded?: number; } export function describeContents( @@ -304,6 +316,7 @@ export function describeContents( keyPath: options.keyPath, _dummy: undefined as any, autoIncrement: options.autoIncrement, + versionAdded: options.versionAdded, }; } @@ -317,6 +330,7 @@ export function describeIndex( name, multiEntry: options.multiEntry, unique: options.unique, + versionAdded: options.versionAdded, }; } -- cgit v1.2.3