Fix DB migration 54 breaking liquid
This commit is contained in:
parent
da3446f522
commit
4d7c69dd73
@ -476,9 +476,11 @@ class DatabaseMigration {
|
|||||||
|
|
||||||
if (databaseSchemaVersion < 54) {
|
if (databaseSchemaVersion < 54) {
|
||||||
this.uniqueLog(logger.notice, `'prices' table has been truncated`);
|
this.uniqueLog(logger.notice, `'prices' table has been truncated`);
|
||||||
this.uniqueLog(logger.notice, `'blocks_prices' table has been truncated`);
|
|
||||||
await this.$executeQuery(`TRUNCATE prices`);
|
await this.$executeQuery(`TRUNCATE prices`);
|
||||||
|
if (isBitcoin === true) {
|
||||||
|
this.uniqueLog(logger.notice, `'blocks_prices' table has been truncated`);
|
||||||
await this.$executeQuery(`TRUNCATE blocks_prices`);
|
await this.$executeQuery(`TRUNCATE blocks_prices`);
|
||||||
|
}
|
||||||
await this.updateToSchemaVersion(54);
|
await this.updateToSchemaVersion(54);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user