Skip to content

Commit a7e66d6

Browse files
clean: remove debug logging and simplify shouldPreserveObjnameAsObject logic
Co-Authored-By: Dan Lynch <[email protected]>
1 parent 848780f commit a7e66d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/transform/src/transformers/v13-to-v14.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ export class V13ToV14Transformer {
18831883

18841884
private shouldPreserveObjnameAsObject(context: TransformerContext): boolean {
18851885
if (!context.parentNodeTypes || context.parentNodeTypes.length === 0) {
1886-
return true; // Default to preserving objects
1886+
return false; // Default to converting to arrays for PG14
18871887
}
18881888

18891889
// For CreateOpClassItem contexts, convert objname to arrays (PG14 expects arrays)
@@ -1893,7 +1893,7 @@ export class V13ToV14Transformer {
18931893

18941894
for (const parentType of context.parentNodeTypes) {
18951895
if (convertToArrayContexts.includes(parentType)) {
1896-
return false; // Convert to array for these contexts
1896+
return false; // Convert to array for these contexts (PG14 format)
18971897
}
18981898
}
18991899

0 commit comments

Comments
 (0)