Merge pull request #5426 from mempool/mononaut/fix-liquid-migration

fix liquid db migration
This commit is contained in:
softsimon 2024-08-05 18:47:26 +02:00 committed by GitHub
commit 96435c329f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -692,7 +692,7 @@ class DatabaseMigration {
await this.updateToSchemaVersion(80);
}
if (databaseSchemaVersion < 81) {
if (databaseSchemaVersion < 81 && isBitcoin === true) {
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD version INT NOT NULL DEFAULT 0');
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD INDEX `version` (`version`)');
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD unseen_txs JSON DEFAULT "[]"');