Skip to content

Commit

Permalink
fixed migrations a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Oct 30, 2024
1 parent 117eed7 commit d00d3c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions supabase/migrations/20241017151343_user_profile_camelcase.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ALTER TABLE user_profiles
RENAME COLUMN hasAcceptedTerms TO has_accepted_terms,
RENAME COLUMN hasCompletedProfile TO has_completed_profile,
RENAME COLUMN hasCreatedOrganization TO has_created_organization,
RENAME COLUMN isCreatedThroughOrgInvitation TO is_created_through_org_invitation;
ALTER TABLE user_profiles RENAME COLUMN hasAcceptedTerms TO has_accepted_terms;
ALTER TABLE user_profiles RENAME COLUMN hasCompletedProfile TO has_completed_profile;
ALTER TABLE user_profiles RENAME COLUMN hasCreatedOrganization TO has_created_organization;
ALTER TABLE user_profiles RENAME COLUMN isCreatedThroughOrgInvitation TO is_created_through_org_invitation;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- leaving blank for backwards compatability
2 changes: 0 additions & 2 deletions supabase/migrations/20241024215657_drop_user_private_info.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
DROP TABLE IF EXISTS user_private_info;

ALTER TABLE user_profiles
ADD COLUMN default_organization uuid;

0 comments on commit d00d3c7

Please sign in to comment.