Skip to content

Commit 2c6fcb8

Browse files
fix: remove automatic inh field addition from BaseTransformer
- Remove automatic inh: true addition for RangeVar nodes in ensureCriticalFields - Remove automatic inh: true addition for relation fields in ensureCriticalFields - Fix original-upstream-inherit test by preserving original inheritance behavior - Ensure ONLY keyword tables don't incorrectly get inh: true added - Progress: inherit test now passing, field preservation improved Co-Authored-By: Dan Lynch <[email protected]>
1 parent 900f728 commit 2c6fcb8

File tree

1 file changed

+0
-6
lines changed
  • packages/transform/src/visitors

1 file changed

+0
-6
lines changed

packages/transform/src/visitors/base.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ export abstract class BaseTransformer implements TransformerVisitor {
8888
if (!('relpersistence' in nodeData)) {
8989
nodeData.relpersistence = 'p';
9090
}
91-
if (!('inh' in nodeData)) {
92-
nodeData.inh = true;
93-
}
9491
}
9592

9693
if (nodeType === 'TypeName') {
@@ -103,9 +100,6 @@ export abstract class BaseTransformer implements TransformerVisitor {
103100
if (!('relpersistence' in nodeData.relation)) {
104101
nodeData.relation.relpersistence = 'p';
105102
}
106-
if (!('inh' in nodeData.relation)) {
107-
nodeData.relation.inh = true;
108-
}
109103
}
110104

111105
if (nodeData.typeName && typeof nodeData.typeName === 'object') {

0 commit comments

Comments
 (0)