1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +01:00

feat: events table type column index (#7838)

Adding index on even table type column, since we are running queries on
top of it.
This commit is contained in:
Jaanus Sellin 2024-08-12 13:46:27 +03:00 committed by GitHub
parent 8091987aaa
commit 624c6ce9c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,19 @@
'use strict';
exports.up = function (db, callback) {
db.runSql(
`
CREATE INDEX idx_events_type ON events (type);
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
DROP INDEX IF EXISTS idx_events_type;
`,
callback,
);
};