Fix database migration fail
This commit is contained in:
parent
c5d382c351
commit
d83f483898
@ -613,7 +613,7 @@ class DatabaseMigration {
|
|||||||
await this.updateToSchemaVersion(72);
|
await this.updateToSchemaVersion(72);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (databaseSchemaVersion < 73 && isBitcoin === true) {
|
if (databaseSchemaVersion < 73 config.MEMPOOL.NETWORK === 'mainnet') {
|
||||||
// Clear bad data
|
// Clear bad data
|
||||||
await this.$executeQuery(`TRUNCATE accelerations`);
|
await this.$executeQuery(`TRUNCATE accelerations`);
|
||||||
this.uniqueLog(logger.notice, `'accelerations' table has been truncated`);
|
this.uniqueLog(logger.notice, `'accelerations' table has been truncated`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user