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

"create schema if not exists" is not working if plugin is used. #108

Closed
borissuska opened this issue Jul 1, 2022 · 3 comments
Closed

"create schema if not exists" is not working if plugin is used. #108

borissuska opened this issue Jul 1, 2022 · 3 comments
Labels
bug Something isn't working built-in plugin Related to a built-in plugin postgres Related to PostgreSQL

Comments

@borissuska
Copy link

I've created plugin to inject schema into queries to avoid using withSchema method with every query. Later I found out it's same as build-in WithSchemaPlugin. I've been using migrations too and trying force Migrator to use schema. In this combination migration fails because of "SCHEMA ALREADY EXISTS" error.

I've been debugging for a while and found out root cause of the problem, then I fixed it with another bug in the PR #107

@koskimas
Copy link
Member

koskimas commented Jul 1, 2022

Nicely found and fixed! 👍 I'll review the PR once I get to a computer (in a couple of days, I'm at a festival and quite intoxicated).

@koskimas
Copy link
Member

koskimas commented Jul 3, 2022

PR merged. Thank you!

@koskimas koskimas closed this as completed Jul 3, 2022
@koskimas
Copy link
Member

koskimas commented Jul 3, 2022

0.19.7 now has your fix.

@igalklebanov igalklebanov added bug Something isn't working built-in plugin Related to a built-in plugin postgres Related to PostgreSQL labels Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working built-in plugin Related to a built-in plugin postgres Related to PostgreSQL
Projects
None yet
Development

No branches or pull requests

3 participants