diff options
author | Florian Dold <florian@dold.me> | 2021-01-13 00:50:56 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-13 00:50:56 +0100 |
commit | 050999a910837f8a5353b1584af2b03bd8dad93d (patch) | |
tree | 8b3611476d61be56411be4104194dddda5f6d6c2 /packages/taler-wallet-core/src/types/dbTypes.ts | |
parent | a5681579fbddb001f5b7118fe705c6643581c722 (diff) | |
download | wallet-core-050999a910837f8a5353b1584af2b03bd8dad93d.tar.xz |
implement infrastructure for future DB migrations via backup
Diffstat (limited to 'packages/taler-wallet-core/src/types/dbTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/dbTypes.ts | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts index f55dcb2f6..0cfc8801b 100644 --- a/packages/taler-wallet-core/src/types/dbTypes.ts +++ b/packages/taler-wallet-core/src/types/dbTypes.ts @@ -1591,9 +1591,6 @@ class TipsStore extends Store<"tips", TipRecord> { this, "tipsByMerchantTipIdAndOriginIndex", ["merchantTipId", "merchantBaseUrl"], - { - versionAdded: 2, - }, ); } @@ -1657,7 +1654,7 @@ class BackupProvidersStore extends Store< BackupProviderRecord > { constructor() { - super("backupProviders", { keyPath: "baseUrl", versionAdded: 3 }); + super("backupProviders", { keyPath: "baseUrl" }); } } @@ -1688,3 +1685,13 @@ export const Stores = { bankWithdrawUris: new BankWithdrawUrisStore(), backupProviders: new BackupProvidersStore(), }; + +export class MetaConfigStore extends Store<"metaConfig", ConfigRecord<any>> { + constructor() { + super("metaConfig", { keyPath: "key" }); + } +} + +export const MetaStores = { + metaConfig: new MetaConfigStore(), +}; |