aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wallet/db.ts')
-rw-r--r--lib/wallet/db.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/wallet/db.ts b/lib/wallet/db.ts
index 55e943393..9133330a2 100644
--- a/lib/wallet/db.ts
+++ b/lib/wallet/db.ts
@@ -25,7 +25,7 @@
*/
const DB_NAME = "taler";
-const DB_VERSION = 8;
+const DB_VERSION = 10;
/**
* Return a promise that resolves
@@ -59,14 +59,15 @@ export function openTalerDb(): Promise<IDBDatabase> {
"contract.repurchase_correlation_id"
]);
- db.createObjectStore("precoins",
- {keyPath: "coinPub", autoIncrement: true});
+ db.createObjectStore("precoins", {keyPath: "coinPub"});
const history = db.createObjectStore("history",
{
keyPath: "id",
autoIncrement: true
});
history.createIndex("timestamp", "timestamp");
+ db.createObjectStore("refresh",
+ {keyPath: "meltCoinPub"});
break;
default:
if (e.oldVersion != DB_VERSION) {