Skip to content

Error with a FK on a schema that's not dumped #548

Description

@leonzaher

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

  1. Enable Supabase Auth
  2. 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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions