You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - I want to specify the schema which my migrations file should be run in. I can't see a way to do that - is there one that I am missing?
I know how to see the versions table etc so I can get the history table in other schemas ok but I can't see a way to specify a schema so my SQL will be run within it. (something like a function call to set a search path). I could do this manually if the Up call supported a transaction but it doesn't appear to?
(Use case is multi tenancy and schema per tenant - I have seen a similar question asked but no answer.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi - I want to specify the schema which my migrations file should be run in. I can't see a way to do that - is there one that I am missing?
I know how to see the versions table etc so I can get the history table in other schemas ok but I can't see a way to specify a schema so my SQL will be run within it. (something like a function call to set a search path). I could do this manually if the Up call supported a transaction but it doesn't appear to?
(Use case is multi tenancy and schema per tenant - I have seen a similar question asked but no answer.)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions