Add expected weight to audit table

This commit is contained in:
Mononaut
2023-06-09 13:46:14 -04:00
parent aedaf53137
commit 3013386ca5
9 changed files with 98 additions and 22 deletions

View File

@@ -534,7 +534,8 @@ class DatabaseMigration {
}
if (databaseSchemaVersion < 62 && isBitcoin === true) {
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD expected_fees BIGINT UNSIGNED NOT NULL DEFAULT "0"');
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD expected_fees BIGINT UNSIGNED DEFAULT NULL');
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD expected_weight BIGINT UNSIGNED DEFAULT NULL');
await this.updateToSchemaVersion(62);
}