-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
diesel does not generate schema when using postgres schema #2096
Comments
We do not parse the database url, we just pass it down to libpq. |
Dear Weiznich, your solution wrt. print-schema is clear to me, however, what do you mean with 'just specify the target schema as part of the migration?" I do not get it - can you provide an example? EDIT: After searching around I found it. In the diesel.toml add a new line below the print_schema section: Details are here: http://diesel.rs/guides/configuring-diesel-cli/ |
@192709 How to specify multiple schemas in this schema attribute (I want to have several models specified into different schema according to their domain categories). |
Setup
Versions
Feature Flags
Problem Description
When I use DATABASE_URL like this:
DATABASE_URL="postgres://user@localhost/mydb" #?options=-c search_path%3Dtest"
bothdiesel print-schema
anddiesel migration run
generate empty schema.rs.When I use default postgres schema (without search_path) it generates normal schema.
The text was updated successfully, but these errors were encountered: