-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle complex foreign key associations.
The previous commit didn't properly handle the case where a table had multiple foreign key associations (with and without cascades) to one or more tables. The new logic implements the following rules: * a table which has fk cascades to more than one table must be an Association * a table which has multiple fk cascades to a single table (even if it has fk non-cascades) is a Composition. * a table with multiple fk cascades to a single ref table combines those cascades into a single Composition * a table with fk cascades and non-cascades to a single ref table splits the cascades into a Composition and the non-cascades to an Association Associations and Compositions are merged if possible.
- Loading branch information
Showing
2 changed files
with
196 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters