Skip to content

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

Open
Rodolfo-Solaro wants to merge 1 commit into
oguimbal:masterfrom
Rodolfo-Solaro:master
Open

fix: set correct 'table_schema' in information_schema.tables#436
Rodolfo-Solaro wants to merge 1 commit into
oguimbal:masterfrom
Rodolfo-Solaro:master

Conversation

@Rodolfo-Solaro

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

Copy link
Copy Markdown

Background

Right now all tables added to 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

@juanrfigueiredo

Copy link
Copy Markdown

had the same issue, made the temporary fix.

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.

2 participants