diff --git a/.github/workflows/pgTAP.yaml b/.github/workflows/pgTAP.yaml index 4a7b8133..3aa2cf3f 100644 --- a/.github/workflows/pgTAP.yaml +++ b/.github/workflows/pgTAP.yaml @@ -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 diff --git a/supabase/migrations/20230405083103_fix_auth_schema_values.sql b/supabase/migrations/20230405083103_fix_auth_schema_values.sql index c9b8372f..b98039c9 100644 --- a/supabase/migrations/20230405083103_fix_auth_schema_values.sql +++ b/supabase/migrations/20230405083103_fix_auth_schema_values.sql @@ -11,6 +11,7 @@ set insert into auth.identities ( id, + provider_id, provider, user_id, identity_data, @@ -18,7 +19,8 @@ insert into 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, diff --git a/supabase/migrations/20240108072747_update_provider_id.sql b/supabase/migrations/20240108072747_update_provider_id.sql new file mode 100644 index 00000000..cf923d2f --- /dev/null +++ b/supabase/migrations/20240108072747_update_provider_id.sql @@ -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';