Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed organisation debug trait and print call #454

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: wrote DB migration for user gender
dhj03 committed Jun 7, 2023
commit b6085b489d078da214995980b1f1269e2598948e
4 changes: 4 additions & 0 deletions backend/migrations/2023-06-07-042751_user_gender/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE users
DROP COLUMN gender;

DROP TYPE user_gender;
4 changes: 4 additions & 0 deletions backend/migrations/2023-06-07-042751_user_gender/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE TYPE user_gender AS ENUM ('Female', 'Male', 'Other', 'Unspecified');

ALTER TABLE users
ADD COLUMN gender user_gender DEFAULT 'Unspecified';