Skip to content

Missing schemas for branches created through the Dashboard UI due to enabled extensions #5070

@k1ng-arthur

Description

@k1ng-arthur

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Currently when using Branching via the UI, if you have enabled an extension such as PGMQ which produces additional schemas in your main database, the creation of the branch will fail as it is unable to find those migrations.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. In the dashboard, enable pgmq extension
  2. Create a new branch via the UI and wait for setup to complete
  3. Go the the 'manage branches' section under branches dropdown and view the logs of the new branch
  4. See the following error below which shows the branch does not recognise the pgmq schema as the extension appears to create the schema (which is not turned on at branch initiation)

Expected behavior

The branch should be able to run all the migrations without issues and any schemas currently used on main should be found on the branch also.

Screenshots

Image

System information

  • Supabase
  • PGMQ extension

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions