Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set correct 'table_schema' in information_schema.tables #436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rodolfo-Solaro
Copy link

@Rodolfo-Solaro Rodolfo-Solaro commented Jan 2, 2025

Background

Right now all tables added to the information_schema.tables are always added with table_schema = 'public'.
This is a problem when using a schema different than 'public' when using pg-mem + knex because, when running migrations, knex queries the information_schema.tables table to determine if the knex migration tables have been created successfully.

Before:

Screenshot 2025-01-02 at 7 17 39 PM

After:

Screenshot 2025-01-02 at 7 17 24 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant