Only create INDEX 'added' when it does not already exist
This commit is contained in:
parent
6c0dd4a5b3
commit
68881df2a4
@ -172,8 +172,7 @@ class DatabaseMigration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (version < 2) {
|
if (version < 2) {
|
||||||
queries.push(`ALTER TABLE statistics
|
queries.push(`CREATE INDEX IF NOT EXISTS added ON statistics (added);`);
|
||||||
ADD INDEX added (added);`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return queries;
|
return queries;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user