Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 6e756b5

Browse files
committed
fix: correctly handle default values for 'text' type in PostgreSQL
1 parent 54790e4 commit 6e756b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/cli/src/actions/pull/provider/postgresql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export const postgresql: IntrospectionProvider = {
150150
case 'uuid':
151151
case 'json':
152152
case 'jsonb':
153+
case 'text':
153154
if (value === 'NULL') return [];
154155
factories.push(defaultAttr.addArg((a) => a.StringLiteral.setValue(value)));
155156
break;

0 commit comments

Comments
 (0)