Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/pgTAP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: 1.88.0
version: 1.127.4
- name: Supabase Start
run: supabase start
- name: Run Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ set
insert into
auth.identities (
id,
provider_id,
provider,
user_id,
identity_data,
created_at,
updated_at
)
select
id,
gen_random_uuid(),
email,
'email' as provider,
id as user_id,
jsonb_build_object('sub', id, 'email', email) as identity_data,
Expand Down
8 changes: 8 additions & 0 deletions supabase/migrations/20240108072747_update_provider_id.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- For email provider the provider_id should be the lowercase email
-- which is availble in the email column
-- This migration was necessecitated by a recent change in identities
-- table schema by gotrue:
-- https://github.com/supabase/gotrue/blob/master/migrations/20231117164230_add_id_pkey_identities.up.sql
update auth.identities
set provider_id = email
where provider = 'email';