Skip to content
Snippets Groups Projects
Commit 334d05e8 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix(dal) Fix wrong schema version, in constants

fix(dal): not need to create txs indices in the migration script (already done in SqliteTransactions.ts)
parent 4f18ebf6
No related branches found
No related tags found
No related merge requests found
...@@ -218,7 +218,7 @@ module.exports = { ...@@ -218,7 +218,7 @@ module.exports = {
PEER: CommonConstants.PEER, 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: { NETWORK: {
MAX_MEMBERS_TO_FORWARD_TO_FOR_SELF_DOCUMENTS: 10, MAX_MEMBERS_TO_FORWARD_TO_FOR_SELF_DOCUMENTS: 10,
......
...@@ -195,9 +195,7 @@ export class MetaDAL extends AbstractSQLite<DBMeta> { ...@@ -195,9 +195,7 @@ export class MetaDAL extends AbstractSQLite<DBMeta> {
25: async () => {}, 25: async () => {},
// Drop old table 'txs' (replaced by a file 'txs.db') // Drop old table 'txs' (replaced by a file 'txs.db')
26: async () => { 26: "BEGIN;" + "DROP TABLE IF EXISTS txs;" + "COMMIT;",
await this.exec("BEGIN;" + "DROP TABLE IF EXISTS txs;" + "COMMIT;");
},
// Add columns 'issuer' and 'recipient' in transaction table - see issue #1442 // Add columns 'issuer' and 'recipient' in transaction table - see issue #1442
27: async () => { 27: async () => {
...@@ -215,8 +213,6 @@ export class MetaDAL extends AbstractSQLite<DBMeta> { ...@@ -215,8 +213,6 @@ export class MetaDAL extends AbstractSQLite<DBMeta> {
"DROP INDEX IF EXISTS idx_txs_received;" + "DROP INDEX IF EXISTS idx_txs_received;" +
"DROP INDEX IF EXISTS idx_txs_output_base;" + "DROP INDEX IF EXISTS idx_txs_output_base;" +
"DROP INDEX IF EXISTS idx_txs_output_amount;" + "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;" "COMMIT;"
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment