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

Postgres schema name added to table names, breaking existing code #554

Open
ViggoV opened this issue Sep 2, 2024 · 1 comment
Open

Postgres schema name added to table names, breaking existing code #554

ViggoV opened this issue Sep 2, 2024 · 1 comment

Comments

@ViggoV
Copy link

ViggoV commented Sep 2, 2024

I can't seem to find any mention of this in the changelogs, but after updating from drizzle-kit 0.20.18 to 0.24.2, the introspect function suddenly add the schema name to the table name:

// before
const mySchema = pgSchema('my_schema')
const someTable = mySchema.pgTable('some_table', { ... })

// after
const mySchema = pgSchema('my_schema')
const someTableInMySchema = mySchema.pgTable('some_table', { ... })

Since our entire project makes use of the "before" convention it's definitely a breaking change.

Is there any way to disable this behaviour?

@ViggoV
Copy link
Author

ViggoV commented Sep 2, 2024

Also, 0.24.x does not appear in the Github releases section

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

No branches or pull requests

1 participant