Using diesel CLI with exclude_custom_type_definitions
has unexpected outcomes
#4055
Closed
3 tasks done
Labels
Setup
Versions
Feature Flags
["postgres", "serde_json", "chrono", "uuid"]
Problem Description
What are you trying to accomplish?
Generating a schema that uses the Geometry SQL types from postgis-diesel. Using the feature
exclude_custom_type_definitions
introduced with #4002 and documented with https://diesel.rs/guides/configuring-diesel-cli.html#the-exclude_custom_type_definitions-field.What is the expected output?
No custom definition and an import of the postgis-diesel type(s).
What is the actual output?
The custom definition is created and rather than saving output to
src/schema.rs
a new file is created with the name of the value ofexclude_custom_type_definitions
.Are you seeing any additional errors?
No additional errors. Patching the documentation or the CLI configuration to align would be great. Diesel CLI saving to a filename other than configured is also worthwhile fixing.
Steps to reproduce
Use a
diesel.toml
configured as below. Then rundiesel migration redo
.To get the desired output
except_custom_type_definitions
has to be used rather thanexclude_custom_type_definitions
. This will properly save output tosrc/schema.rs
and will use the postgis-diesel type.Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: