Migrate audits from v0 to v1

This commit is contained in:
Mononaut
2024-07-20 11:54:09 +00:00
parent 0723778e7c
commit 96e2e6060b
4 changed files with 113 additions and 19 deletions

View File

@@ -695,7 +695,7 @@ class DatabaseMigration {
if (databaseSchemaVersion < 81) {
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 seen_txs JSON DEFAULT "[]"');
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD unseen_txs JSON DEFAULT "[]"');
await this.updateToSchemaVersion(81);
}
}