Clean
This commit is contained in:
parent
164e1f4c18
commit
ea1c273de0
|
@ -36,8 +36,7 @@ function checkForeignKeysAreAutoColumns(datasource: Datasource) {
|
||||||
|
|
||||||
// now make sure schemas are all accurate
|
// now make sure schemas are all accurate
|
||||||
for (const table of tables) {
|
for (const table of tables) {
|
||||||
for (let column of Object.values(table.schema) as any[]) {
|
for (let column of Object.values(table.schema)) {
|
||||||
// TODO: any[]
|
|
||||||
const shouldBeForeign = foreignKeys.find(
|
const shouldBeForeign = foreignKeys.find(
|
||||||
options => options.tableId === table._id && options.key === column.name
|
options => options.tableId === table._id && options.key === column.name
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue