Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport postgress ltree type in schema #1262
Comments
This comment has been minimized.
|
Are you ever using that column on anything Diesel related? If not you can just delete the column from schema.rs. Otherwise you can create a |
This comment has been minimized.
|
Since this type comes from an extension, which we don't support in Diesel, I'm going to close this. Proper support for this type would be better handled by a third party crate. (See |
sgrif
closed this
Oct 18, 2017
This comment has been minimized.
carols10cents
commented
Oct 18, 2017
|
Then I have to either delete the column for schema.rs every time I run diesel print-schema, or I have to add |
This comment has been minimized.
|
Yeah I think it's worth having us keep a diff file that can be easily re-applied in crates.io |
carols10cents commentedOct 18, 2017
We've got a pr in crates.io to use postgres' ltree type. Diesel seems to be quite happy to use this, except when it comes to the schema.
After running the migration in that PR, of which the important part is adding a column to a table of type
ltree:I can run
diesel print-schema --with-docs > src/schema.rs, and the new column with the ltree type is printed as I would expect:but when I try to compile crates.io using this schema, I get these errors:
I have tried this with diesel 0.16.0 and diesel master at 75ba15a.
Checklist