rake-db 2.23.45 → 2.23.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4770,7 +4770,10 @@ const analyzeTableColumns = (config, currentSchema, schema, table, deps, resolve
4770
4770
  )
4771
4771
  );
4772
4772
  const [s = currentSchema, t] = getForeignKeyTable(fkey.fnOrTable);
4773
- deps.push(`${s}.${t}`);
4773
+ const foreignTable = `${s}.${t}`;
4774
+ if (foreignTable !== table) {
4775
+ deps.push(foreignTable);
4776
+ }
4774
4777
  }
4775
4778
  }
4776
4779
  }