mirror of
https://github.com/mempool/mempool.git
synced 2025-09-30 18:23:07 +02:00
Only create INDEX 'added' when it does not already exist
This commit is contained in:
@@ -172,8 +172,7 @@ class DatabaseMigration {
|
||||
}
|
||||
|
||||
if (version < 2) {
|
||||
queries.push(`ALTER TABLE statistics
|
||||
ADD INDEX added (added);`);
|
||||
queries.push(`CREATE INDEX IF NOT EXISTS added ON statistics (added);`);
|
||||
}
|
||||
|
||||
return queries;
|
||||
|
Reference in New Issue
Block a user