gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet DB version


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet DB version
Date: Fri, 08 May 2020 14:15:29 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 4bd37277 wallet DB version
4bd37277 is described below

commit 4bd372770e331f95439acf68a024f6bc11914e78
Author: Florian Dold <address@hidden>
AuthorDate: Fri May 8 17:45:23 2020 +0530

    wallet DB version
---
 src/db.ts | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/db.ts b/src/db.ts
index 18efbf2b..ea20d2a0 100644
--- a/src/db.ts
+++ b/src/db.ts
@@ -1,13 +1,20 @@
 import { Stores } from "./types/dbTypes";
 import { openDatabase, Database, Store, Index } from "./util/query";
 
-const TALER_DB_NAME = "taler-wallet";
+/**
+ * Name of the Taler database.  The name includes the
+ * major version of the DB schema.  The version should be incremented
+ * with each major change.  When incrementing the major version,
+ * the wallet should import data from the previous version.
+ */
+const TALER_DB_NAME = "taler-walletdb-v1";
 
 /**
- * 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.
+ * Current database minor version, should be incremented
+ * each time we do minor schema changes on the database.
+ * A change is considered minor when fields are added in a
+ * backwards-compatible way or object stores and indices
+ * are added.
  */
 export const WALLET_DB_VERSION = 1;
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]