-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12114 from transcom/MAIN-B-18820-add-status-edipi…
…-otheruniqueid-rej-reason-to-officeusers-table MAIN B-18820 add status, edipi, otheruniqueid, rej reason, to office_users table
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...240227180121_add_status_edipi_other_unique_id_and_rej_reason_to_office_users_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE TYPE office_user_status AS enum ( | ||
'APPROVED', | ||
'REQUESTED', | ||
'REJECTED' | ||
); | ||
|
||
-- Adds new columns to office_users table | ||
-- making status default of APPROVED to ensure past users using MM are already approved | ||
ALTER TABLE office_users | ||
ADD COLUMN IF NOT EXISTS status office_user_status DEFAULT 'APPROVED' NULL, | ||
ADD COLUMN IF NOT EXISTS edipi TEXT UNIQUE DEFAULT NULL, | ||
ADD COLUMN IF NOT EXISTS other_unique_id TEXT UNIQUE DEFAULT NULL, | ||
ADD COLUMN IF NOT EXISTS rejection_reason TEXT DEFAULT NULL; | ||
|
||
-- Comments on new columns | ||
COMMENT on COLUMN office_users.status IS 'Status of an office user account'; | ||
COMMENT on COLUMN office_users.edipi IS 'DoD ID or EDIPI of office user'; | ||
COMMENT on COLUMN office_users.other_unique_id IS 'Other unique id for PIV or ECA cert users'; | ||
COMMENT on COLUMN office_users.rejection_reason IS 'Rejection reason when account request is rejected by an admin'; |