-
Notifications
You must be signed in to change notification settings - Fork 238
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
Raw sql execute does not use schema during migration #761
Comments
For who will hit the same issue, we find a temporary workaround using this function to retrieve the current schema name export const getSchemaName = (schema: SchemaModule) => {
let name = 'public';
schema.createTable('test').$call(b => {
name = b.toOperationNode().table.table.schema?.name ?? 'public';
});
return name;
}; |
Hey 👋 Once b481619 gets released you'll be able to inject non-select queries built with builders into Looks like support for |
Hi,
We are currently trying to have a custom migration that runs everytime
reagardless
the current migration step. This migration will hold the last version of somestored procedure
. Thesestored procedure
must run using thelatest
constant
from our codebase.We work with schema for testing purpose and we are doing the following
The compiled query does not contains any information about the schema provided by using:
Is there any way to use the right schema ?
Thanks
The text was updated successfully, but these errors were encountered: