Add missing truncate blocks table

This commit is contained in:
nymkappa 2023-02-25 13:59:37 +09:00
parent 8d9568016e
commit 210f939e65
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -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);
}
}