Skip to content

Commit

Permalink
prevent user table, user-list API from blowing up #2419 #4475
Browse files Browse the repository at this point in the history
The createAuthenticatedUserForView method can't handle a null
for the deactivated boolean so we'll set the boolean to false
for existing users. For new users, this is set to false already.
  • Loading branch information
pdurbin committed Mar 25, 2021
1 parent 81274c9 commit 569136f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
-- Users can be deactivated.
ALTER TABLE authenticateduser ADD COLUMN IF NOT EXISTS deactivated BOOLEAN;
-- Prevent old users from having null for deactivated.
UPDATE authenticateduser SET deactivated = false;
-- A timestamp of when the user was deactivated.
ALTER TABLE authenticateduser ADD COLUMN IF NOT EXISTS deactivatedtime timestamp without time zone;

0 comments on commit 569136f

Please sign in to comment.