dbml icon indicating copy to clipboard operation
dbml copied to clipboard

Support shorthand foreign key references

Open nguyenalter opened this issue 3 years ago • 0 comments

Summary

  • Support shorthand foreign key references syntax in PostgreSQL/MSSQL
  • Fix: missing constraint names when importing from PostgreSQL/MSSQL foreign keys to DBML's refs

Issue

  • https://community.dbdiagram.io/t/feature-request-add-foreign-key-constraints-support-to-dbml-conversion-from-sql-file/1454/5

Lasting Changes (Technical)

  • Update setFields method in Endpoint class
  • Add constraint names to DBML's refs
  • Update testcases

Checklist

Please check directly on the box once each of these are done

  • [ ] Documentation (if necessary)
  • [x] Tests (integration test/unit test)
  • [ ] Integration Tests Passed
  • [ ] Code Review

nguyenalter avatar Jul 13 '22 08:07 nguyenalter