mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
Add indexes
This commit is contained in:
parent
46b1a25181
commit
81edf4a4ff
21
src/migrations/20220811221515-add-environtment-indexes.js
Normal file
21
src/migrations/20220811221515-add-environtment-indexes.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
exports.up = function (db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_feature_strategies_environment
|
||||||
|
ON feature_strategies(environment);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_feature_environments_environment
|
||||||
|
ON feature_environments(environment); `,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
DROP INDEX idx_feature_strategies_environment;
|
||||||
|
DROP INDEX idx_feature_environments_environment;
|
||||||
|
`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user