-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SKFP-354 Migration from persona to users-api (for Kidsfirst, will be …
…removed after persona cut) (#74)
- Loading branch information
1 parent
dc690e2
commit 49eec8f
Showing
15 changed files
with
678 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- Up Migration | ||
ALTER TABLE users | ||
ADD COLUMN newsletter_dataset_subscription_status TEXT; | ||
ALTER TABLE users | ||
ADD COLUMN location_country CITEXT; | ||
ALTER TABLE users | ||
ADD COLUMN location_state CITEXT; | ||
ALTER TABLE users | ||
ADD COLUMN website TEXT; | ||
ALTER TABLE users | ||
ADD COLUMN areas_of_interest CITEXT[]; | ||
ALTER TABLE users | ||
ADD COLUMN is_public BOOLEAN NOT NULL DEFAULT false; | ||
UPDATE users SET is_public = true; | ||
|
||
-- Down Migration | ||
ALTER TABLE users | ||
DROP COLUMN newsletter_dataset_subscription_status; | ||
ALTER TABLE users | ||
DROP COLUMN location_country; | ||
ALTER TABLE users | ||
DROP COLUMN location_state; | ||
ALTER TABLE users | ||
DROP COLUMN website; | ||
ALTER TABLE users | ||
DROP COLUMN areas_of_interest; | ||
ALTER TABLE users | ||
DROP COLUMN is_public; |
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,5 @@ | ||
-- Up Migration | ||
ALTER TABLE users DROP COLUMN nih_ned_id; | ||
|
||
-- Down Migration | ||
ALTER TABLE users ADD COLUMN nih_ned_id VARCHAR(255); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.