1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

Merge remote-tracking branch 'origin/main' into decorate-emails-in-ui

This commit is contained in:
Gastón Fournier 2025-02-05 15:52:47 +01:00
commit 2665280e6e
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E
2 changed files with 16 additions and 0 deletions

View File

@ -197,6 +197,8 @@ class UserStore implements IUserStore {
deleted_at: new Date(),
email: null,
username: null,
scim_id: null,
scim_external_id: null,
name: this.db.raw('name || ?', '(Deleted)'),
});
}

View File

@ -0,0 +1,14 @@
exports.up = (db, cb) => {
db.runSql(`
UPDATE users
SET
scim_id = NULL,
scim_external_id = NULL
WHERE deleted_at IS NOT NULL AND scim_id IS NOT NULL;
`, cb);
};
exports.down = (db, cb) => {
cb();
};