Skip to content

Commit 7020afb

Browse files
lennymlopesLopes Lenny
andauthored
Quote relationship identifiers with spaces (#587)
Co-authored-by: Lopes Lenny <[email protected]>
1 parent 5a584c5 commit 7020afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/exportAs/dbml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function toDBML(diagram) {
108108
(f) => f.id === rel.endFieldId,
109109
);
110110

111-
return `Ref ${rel.name} {\n\t${quoteIdentifier(startTableName)}.${quoteIdentifier(startFieldName)} ${cardinality(rel)} ${quoteIdentifier(endTableName)}.${quoteIdentifier(endFieldName)} [ delete: ${rel.deleteConstraint.toLowerCase()}, update: ${rel.updateConstraint.toLowerCase()} ]\n}`;
111+
return `Ref ${quoteIdentifier(rel.name)} {\n\t${quoteIdentifier(startTableName)}.${quoteIdentifier(startFieldName)} ${cardinality(rel)} ${quoteIdentifier(endTableName)}.${quoteIdentifier(endFieldName)} [ delete: ${rel.deleteConstraint.toLowerCase()}, update: ${rel.updateConstraint.toLowerCase()} ]\n}`;
112112
};
113113

114114
let enumDefinitions = "";

0 commit comments

Comments
 (0)