Skip to content

Commit 5f40ba5

Browse files
pg_type restore
1 parent 15ed910 commit 5f40ba5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/module-mongodb/src/api/MongoRouteAPIAdapter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ export class MongoRouteAPIAdapter implements api.RouteAPI {
260260
name: key,
261261
type: internal_type,
262262
sqlite_type: value.sqliteType.typeFlags,
263-
internal_type
263+
internal_type,
264+
pg_type: internal_type
264265
};
265266
});
266267
}

packages/types/src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const TableSchema = t.object({
132132
* Internal postgres type, e.g. "varchar[]".
133133
* @deprecated - use internal_type instead
134134
*/
135-
pg_type: t.string.optional()
135+
pg_type: t.string
136136
})
137137
)
138138
});

0 commit comments

Comments
 (0)