diff --git a/packages/tools/src/alterPlan.ts b/packages/tools/src/alterPlan.ts index e8fd88ae3..1143ff165 100644 --- a/packages/tools/src/alterPlan.ts +++ b/packages/tools/src/alterPlan.ts @@ -504,7 +504,7 @@ export class AlterPlan { return []; } - const table = this.wholeOldDb.tables.find( + const table = this.wholeNewDb.tables.find( x => x.pureName == op[objectField].pureName && x.schemaName == op[objectField].schemaName ); this.recreates.tables += 1;