Skip to content

Commit

Permalink
Merge pull request #94 from l123wx/auto-swap-for-foreign-key-name
Browse files Browse the repository at this point in the history
Auto swap for foreign key name (#79)
  • Loading branch information
1ilit committed May 10, 2024
2 parents 36900bc + 9e489d6 commit 0d39919
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export default function RelationshipInfo({ data }) {
idx === data.id
? {
...e,
name: `${tables[e.startTableId].name}_${
tables[e.startTableId].fields[e.startFieldId].name
}_fk`,
startTableId: e.endTableId,
startFieldId: e.endFieldId,
endTableId: e.startTableId,
Expand Down

0 comments on commit 0d39919

Please sign in to comment.