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 ecb5c7a573bca8ddf2244a442d60738cea0c5ed1..82dfe8b49194b65e6e31dc63005a3152b114f064 100644 --- a/app/lib/dal/sqliteDAL/MetaDAL.ts +++ b/app/lib/dal/sqliteDAL/MetaDAL.ts @@ -195,9 +195,7 @@ 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 () => { @@ -215,8 +213,6 @@ export class MetaDAL extends AbstractSQLite<DBMeta> { "DROP INDEX IF EXISTS idx_txs_received;" + "DROP INDEX IF EXISTS idx_txs_output_base;" + "DROP INDEX IF EXISTS idx_txs_output_amount;" + - "CREATE INDEX IF NOT EXISTS idx_txs_issuers ON txs (issuers);" + - "CREATE INDEX IF NOT EXISTS idx_txs_recipients ON txs (recipients);" + "COMMIT;" );