1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/migrations/20240326122126-add-index-on-group-name.js

11 lines
250 B
JavaScript
Raw Normal View History

exports.up = function (db, cb) {
db.runSql(
`CREATE INDEX IF NOT EXISTS groups_group_name_idx ON groups(name)`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(`DROP INDEX IF EXISTS groups_group_name_idx`, cb);
};