Skip to content

Commit

Permalink
task: added scim id to user
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Mar 5, 2024
1 parent dc7a715 commit c6fe19f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/migrations/20240305131822-add-scim-id-column-to-user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
exports.up = function(db, cb) {
db.runSql(`
ALTER TABLE users ADD COLUMN scim_id TEXT;
CREATE INDEX users_scim_id_uniq_idx ON users (scim_id) WHERE scim_id IS NOT NULL;
`, cb);
};

exports.down = function(db, cb) {
db.runSql(`
DROP INDEX users_scim_id_uniq_idx;
ALTER TABLE users DROP COLUMN scim_id;
`, cb);
};

0 comments on commit c6fe19f

Please sign in to comment.