mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
Add missing truncate blocks table
This commit is contained in:
parent
8d9568016e
commit
210f939e65
1 changed files with 2 additions and 0 deletions
|
@ -486,6 +486,8 @@ class DatabaseMigration {
|
|||
|
||||
if (databaseSchemaVersion < 55) {
|
||||
await this.$executeQuery(this.getAdditionalBlocksDataQuery());
|
||||
this.uniqueLog(logger.notice, this.blocksTruncatedMessage);
|
||||
await this.$executeQuery('TRUNCATE blocks;'); // Need to re-index
|
||||
await this.updateToSchemaVersion(55);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue