File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
105
105
}
106
106
} ) ;
107
107
} ) ;
108
- } else if ( d . constraint_type === "FOREIGN KEY " ) {
108
+ } else if ( d . constraint_type . toLowerCase ( ) === "foreign key " ) {
109
109
const relationship = { } ;
110
110
const startTableId = table . id ;
111
111
const startTable = e . table [ 0 ] . table ;
@@ -187,7 +187,7 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
187
187
e . expr . forEach ( ( expr ) => {
188
188
if (
189
189
expr . action === "add" &&
190
- expr . create_definitions . constraint_type === "FOREIGN KEY "
190
+ expr . create_definitions . constraint_type . toLowerCase ( ) === "foreign key "
191
191
) {
192
192
const relationship = { } ;
193
193
const startTable = e . table [ 0 ] . table ;
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export function fromMSSQL(ast, diagramDb = DB.GENERIC) {
117
117
}
118
118
} ) ;
119
119
} ) ;
120
- } else if ( d . constraint_type === "FOREIGN KEY " ) {
120
+ } else if ( d . constraint_type . toLowerCase ( ) === "foreign key " ) {
121
121
const relationship = { } ;
122
122
const startTableId = table . id ;
123
123
const startTable = e . table [ 0 ] . table ;
@@ -199,7 +199,7 @@ export function fromMSSQL(ast, diagramDb = DB.GENERIC) {
199
199
e . expr . forEach ( ( expr ) => {
200
200
if (
201
201
expr . action === "add" &&
202
- expr . create_definitions . constraint_type === "FOREIGN KEY "
202
+ expr . create_definitions . constraint_type . toLowerCase ( ) === "foreign key "
203
203
) {
204
204
const relationship = { } ;
205
205
const startTable = e . table [ 0 ] . table ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
105
105
}
106
106
} ) ;
107
107
} ) ;
108
- } else if ( d . constraint_type === "FOREIGN KEY " ) {
108
+ } else if ( d . constraint_type . toLowerCase ( ) === "foreign key " ) {
109
109
const relationship = { } ;
110
110
const startTableId = table . id ;
111
111
const startTable = e . table [ 0 ] . table ;
@@ -187,7 +187,7 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
187
187
e . expr . forEach ( ( expr ) => {
188
188
if (
189
189
expr . action === "add" &&
190
- expr . create_definitions . constraint_type === "FOREIGN KEY "
190
+ expr . create_definitions . constraint_type . toLowerCase ( ) === "foreign key "
191
191
) {
192
192
const relationship = { } ;
193
193
const startTable = e . table [ 0 ] . table ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
105
105
}
106
106
} ) ;
107
107
} ) ;
108
- } else if ( d . constraint_type === "FOREIGN KEY " ) {
108
+ } else if ( d . constraint_type . toLowerCase ( ) === "foreign key " ) {
109
109
const relationship = { } ;
110
110
const startTableId = table . id ;
111
111
const startTable = e . table [ 0 ] . table ;
@@ -278,7 +278,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
278
278
e . expr . forEach ( ( expr ) => {
279
279
if (
280
280
expr . action === "add" &&
281
- expr . create_definitions . constraint_type === "FOREIGN KEY "
281
+ expr . create_definitions . constraint_type . toLowerCase ( ) === "foreign key "
282
282
) {
283
283
const relationship = { } ;
284
284
const startTable = e . table [ 0 ] . table ;
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export function fromSQLite(ast, diagramDb = DB.GENERIC) {
122
122
}
123
123
} ) ;
124
124
} ) ;
125
- } else if ( d . constraint_type === "FOREIGN KEY " ) {
125
+ } else if ( d . constraint_type . toLowerCase ( ) === "foreign key " ) {
126
126
const relationship = { } ;
127
127
const startTableId = table . id ;
128
128
const startTable = e . table [ 0 ] . table ;
You can’t perform that action at this time.
0 commit comments