Fix Goggles indexing when summaries disabled

This commit is contained in:
Mononaut
2024-01-23 13:33:59 +00:00
parent 7405cf8336
commit 82920f621f
2 changed files with 5 additions and 5 deletions

View File

@@ -559,7 +559,7 @@ class DatabaseMigration {
await this.updateToSchemaVersion(66);
}
if (databaseSchemaVersion < 67) {
if (databaseSchemaVersion < 67 && isBitcoin === true) {
await this.$executeQuery('ALTER TABLE `blocks_summaries` ADD version INT NOT NULL DEFAULT 0');
await this.$executeQuery('ALTER TABLE `blocks_summaries` ADD INDEX `version` (`version`)');
await this.$executeQuery('ALTER TABLE `blocks_templates` ADD version INT NOT NULL DEFAULT 0');