Skip to content

Commit

Permalink
Fix not being able to drop multiple columns from the same table
Browse files Browse the repository at this point in the history
  • Loading branch information
martijndeh committed Jan 3, 2021
1 parent 09e6903 commit 0962902
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/create-sql.ts
Expand Up @@ -234,7 +234,9 @@ export const createSql = (
}
});

fromTable.columns.forEach((fromColumn) => {
const fromColumns = [...fromTable.columns];

fromColumns.forEach((fromColumn) => {
const toColumn = toTable.columns.find((column) => column.name === fromColumn.name);

if (!toColumn) {
Expand Down

0 comments on commit 0962902

Please sign in to comment.