diff --git a/app/lib/constants.ts b/app/lib/constants.ts index 243c2bf4dbc9126adca7b4f8002370d19c3e75bd..02505d6a4b6bf9a5bf3840e151dd4663562a575b 100644 --- a/app/lib/constants.ts +++ b/app/lib/constants.ts @@ -218,7 +218,7 @@ module.exports = { PEER: CommonConstants.PEER, - CURRENT_DB_VERSION: 27, // Should be set with 'max(keys(MetaDAL.migration)) + 1' + CURRENT_DB_VERSION: 28, // Should be set with 'max(keys(MetaDAL.migration)) + 1' NETWORK: { MAX_MEMBERS_TO_FORWARD_TO_FOR_SELF_DOCUMENTS: 10, diff --git a/app/lib/dal/sqliteDAL/MetaDAL.ts b/app/lib/dal/sqliteDAL/MetaDAL.ts index ba44074a245293b059107ace3f6a5ddd6e3e0699..53caf5519debbdcb3aa9f629e72f4a6024f9a1dd 100644 --- a/app/lib/dal/sqliteDAL/MetaDAL.ts +++ b/app/lib/dal/sqliteDAL/MetaDAL.ts @@ -195,9 +195,9 @@ export class MetaDAL extends AbstractSQLite<DBMeta> { 25: async () => {}, // Drop old table 'txs' (replaced by a file 'txs.db') - 26: async () => { - await this.exec("BEGIN;" + "DROP TABLE IF EXISTS txs;" + "COMMIT;"); - }, + 26: "BEGIN;" + + "DROP TABLE IF EXISTS txs;" + + "COMMIT;", // Add columns 'issuer' and 'recipient' in transaction table - see issue #1442 27: async () => {