mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
[migration] re-index hashrates and difficulty_adjustments
This commit is contained in:
parent
3f50d57ed1
commit
727208ff84
1 changed files with 4 additions and 0 deletions
|
@ -652,6 +652,10 @@ class DatabaseMigration {
|
|||
await this.$executeQuery('ALTER TABLE `prices` ADD `THB` float DEFAULT "-1"');
|
||||
await this.$executeQuery('ALTER TABLE `prices` ADD `TRY` float DEFAULT "-1"');
|
||||
await this.$executeQuery('ALTER TABLE `prices` ADD `ZAR` float DEFAULT "-1"');
|
||||
|
||||
await this.$executeQuery('TRUNCATE hashrates');
|
||||
await this.$executeQuery('TRUNCATE difficulty_adjustments');
|
||||
|
||||
await this.updateToSchemaVersion(75);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue