aboutsummaryrefslogtreecommitdiff
path: root/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-13 13:10:20 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-13 13:10:20 +0100
commit04a60770ee6a282f4833b8bfe72525ea36b8e295 (patch)
treeefb2289bec715369ada44624a134cdc15f395295 /src/db.ts
parentf3329ecf062b217b2e062b92034152f623685a87 (diff)
new history schema
Diffstat (limited to 'src/db.ts')
-rw-r--r--src/db.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/db.ts b/src/db.ts
index 0a07171ba..e1c5c8f85 100644
--- a/src/db.ts
+++ b/src/db.ts
@@ -1,9 +1,17 @@
-import { Stores, WALLET_DB_VERSION } from "./types/dbTypes";
+import { Stores } from "./types/dbTypes";
import { openDatabase, Database } from "./util/query";
const TALER_DB_NAME = "taler";
/**
+ * Current database version, should be incremented
+ * each time we do incompatible schema changes on the database.
+ * In the future we might consider adding migration functions for
+ * each version increment.
+ */
+export const WALLET_DB_VERSION = 28;
+
+/**
* Return a promise that resolves
* to the taler wallet db.
*/