gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
487 stars 40 forks source link

Fix to support cross-schema foreign keys in postgesql #140

Closed saward closed 2 years ago

saward commented 3 years ago

Changed the query to use the schema for the foreign key itself, and not the schema for the current table. Resolves #137.

It was a few months ago I tested this, but I'm quite sure the above is what was going on. Have been using this issue for a production project for a few months, and haven't encountered any side effects.

saward commented 3 years ago

@natefinch Could you please merge this in? It's a bit troublesome for me to use my local version with this fix. Thanks!

saward commented 3 years ago

@natefinch Any chance you could hit the merge button for this patch please?

saward commented 2 years ago

@natefinch Hi Nate, is it possible you could hit merge on this please?

natefinch commented 2 years ago

Done! :)

saward commented 2 years ago

Excellent, thanks!