Add separate effective fee stats fields
This commit is contained in:
@@ -7,7 +7,7 @@ import cpfpRepository from '../repositories/CpfpRepository';
|
||||
import { RowDataPacket } from 'mysql2';
|
||||
|
||||
class DatabaseMigration {
|
||||
private static currentVersion = 94;
|
||||
private static currentVersion = 95;
|
||||
private queryTimeout = 3600_000;
|
||||
private statisticsAddedIndexed = false;
|
||||
private uniqueLogs: string[] = [];
|
||||
@@ -1118,6 +1118,16 @@ class DatabaseMigration {
|
||||
}
|
||||
await this.updateToSchemaVersion(94);
|
||||
}
|
||||
|
||||
if (databaseSchemaVersion < 95) {
|
||||
// Version 95
|
||||
await this.$executeQuery(`
|
||||
ALTER TABLE \`blocks\`
|
||||
ADD \`effective_median_fee\` BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
ADD \`effective_fee_span\` JSON DEFAULT NULL;
|
||||
`);
|
||||
await this.updateToSchemaVersion(95);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user