[migration] re-index hashrates and difficulty_adjustments

This commit is contained in:
nymkappa 2024-04-04 10:57:54 +09:00
parent 3f50d57ed1
commit 727208ff84
No known key found for this signature in database
GPG key ID: 92358FC85D9645DE

View file

@ -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);
}