mirror of
https://github.com/mempool/mempool.git
synced 2026-08-17 13:07:07 +02:00
Add db migration to remove bad price data
This commit is contained in:
parent
c4b6f0b35d
commit
35cd476d0e
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import cpfpRepository from '../repositories/CpfpRepository';
|
|||
import { RowDataPacket } from 'mysql2';
|
||||
|
||||
class DatabaseMigration {
|
||||
private static currentVersion = 100;
|
||||
private static currentVersion = 101;
|
||||
private queryTimeout = 3600_000;
|
||||
private statisticsAddedIndexed = false;
|
||||
private uniqueLogs: string[] = [];
|
||||
|
|
@ -1299,6 +1299,10 @@ class DatabaseMigration {
|
|||
queries.push(`DELETE FROM state WHERE name = 'last_weekly_hashrates_indexing'`);
|
||||
}
|
||||
|
||||
if (version < 101) {
|
||||
queries.push(`DELETE FROM prices WHERE USD = -1`);
|
||||
}
|
||||
|
||||
return queries;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue