Skip to content

Commit

Permalink
feat: add partial index on client_applications annouced FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Feb 8, 2024
1 parent b9a8280 commit 3eaba1e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict';

exports.up = function(db, cb) {
db.runSql(
`
CREATE INDEX idx_client_applications_announced_false ON client_applications (announced)
WHERE announced = FALSE;
`,
cb,
);
};

exports.down = function(db, cb) {
db.runSql(`
DROP INDEX idx_client_applications_announced_false;
`, cb);
};

0 comments on commit 3eaba1e

Please sign in to comment.