Update packages/core/database/lib/schema/diff.js

Co-authored-by: Nathan Pichon <npichon.walchshofer@gmail.com>
This commit is contained in:
Marc 2023-05-02 15:34:50 +02:00 committed by GitHub
parent 1a1a9eea51
commit f890fe87e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -365,7 +365,7 @@ module.exports = (db) => {
const dependencies = persistedTables
.filter((table) => {
const dependsOn = table?.dependsOn;
if (_.isNil(dependsOn) || !_.isArray(dependsOn)) return;
if (!_.isArray(dependsOn)) return;
return dependsOn.some((table) => table.name === srcTable.name);
})
.map((dependsOnTable) => {