mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
don't automatically parse jsonb fields on postgres
This commit is contained in:
parent
ba1b99b408
commit
e5d9b62f9b
@ -22,6 +22,12 @@ class PostgresDialect extends Dialect {
|
||||
'text',
|
||||
(v) => v
|
||||
);
|
||||
// Don't parse JSONB automatically
|
||||
this.db.connection.client.driver.types.setTypeParser(
|
||||
this.db.connection.client.driver.types.builtins.JSONB,
|
||||
'text',
|
||||
(v) => v
|
||||
);
|
||||
this.db.connection.client.driver.types.setTypeParser(
|
||||
this.db.connection.client.driver.types.builtins.NUMERIC,
|
||||
'text',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user