Closed Sata51 closed 1 year ago
Hey! This is a bug in WithSchemaPlugin
. I'm working on a fix. I think for now raw SQL is the best workaround. This should be fixed soon, so leave a comment above the workaround to refactor it later 😄
Thanks for reporting this!
Hi,
We are using Kysely for a while now, thanks for the great work done here !
We encounter an issue with the use of the
with
keyword inPostgres
dialect.This works perfectly fine, when not using a custom schema name. For testing purpose, we use the
Migrator
with a db object that has aWithSchemaPlugin
defined.This schema is also applied when using the keyword
with
When the migration is executed, the following error is thrown:
This should help to reproduce
Is there a cleaner workaround ?