Migrate audits from v0 to v1

This commit is contained in:
Mononaut committed 2024-08-01 14:07:19 +00:00
1 parent 0723778e7c
commit 96e2e6060b
4 files changed
+113 -19

No files matched your search

+1 -1
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);
}
}