Problem
Migrating from Supabase Migrations.
When using Supabase Auth and trying to create a FK on Auth schema, if Auth schema isn't dumped, pgschema errors out with schema \"auth\" does not exist (SQLSTATE 3F000)". I don't want to dump Auth schema because it's managed by Supabase.
Reproduction
- Enable Supabase Auth
create table backend.users ( auth_user_id uuid not null unique references auth.users (id) on delete cascade);
Solution
What's the best solution for this case?
Problem
Migrating from Supabase Migrations.
When using Supabase Auth and trying to create a FK on Auth schema, if Auth schema isn't dumped, pgschema errors out with
schema \"auth\" does not exist (SQLSTATE 3F000)". I don't want to dump Auth schema because it's managed by Supabase.Reproduction
create table backend.users ( auth_user_id uuid not null unique references auth.users (id) on delete cascade);Solution
What's the best solution for this case?