Skip to content

Commit 2db2dda

Browse files
committed
Including decimal alias for postgres numeric type in the Swift type generator
1 parent be0fff9 commit 2db2dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/templates/swift.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const pgTypeToSwiftType = (
309309
swiftType = 'Float'
310310
} else if (pgType === 'float8') {
311311
swiftType = 'Double'
312-
} else if (pgType === 'numeric') {
312+
} else if (['numeric', 'decimal'].includes(pgType)) {
313313
swiftType = 'Decimal'
314314
} else if (pgType === 'uuid') {
315315
swiftType = 'UUID'

0 commit comments

Comments
 (0)