1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00
This commit is contained in:
Adria Navarro 2023-10-11 13:18:04 +02:00
parent 164e1f4c18
commit ea1c273de0

View file

@ -36,8 +36,7 @@ function checkForeignKeysAreAutoColumns(datasource: Datasource) {
// now make sure schemas are all accurate
for (const table of tables) {
for (let column of Object.values(table.schema) as any[]) {
// TODO: any[]
for (let column of Object.values(table.schema)) {
const shouldBeForeign = foreignKeys.find(
options => options.tableId === table._id && options.key === column.name
)