-
Notifications
You must be signed in to change notification settings - Fork 49
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
Set Postgres schema #104
Comments
ObjectionJS has models (JSON Schema format) that is used for data validation, hooks, describe relations and more. ObjectionJS models won't help you with schema migration - for this you can use Knex migrate tool. Check here for how to initiated Knex with PostgreSQL or try with the following example:
|
Hi @dekelev Using feathers-knex my services are defined as:
feathers-knex allows for a schema option in service options. I cannot do the same with feathers-objection, it always defaults to the "public" schema. Can I set the schema somewhere in a hook perhaps? |
Thanks @EmileSpecs , PR released with v5.6.0 |
Can't seem to figure out how to set the Postgres schema.
In feathers-knex it can be set in die service options as well as through hooks (setting context.service.schema).
This doesn't seem to work with feathers-objection, is there some way to set the schema (it obviously defaults to "public")?
The text was updated successfully, but these errors were encountered: