mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 02:28:30 +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',
|
'text',
|
||||||
(v) => v
|
(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.setTypeParser(
|
||||||
this.db.connection.client.driver.types.builtins.NUMERIC,
|
this.db.connection.client.driver.types.builtins.NUMERIC,
|
||||||
'text',
|
'text',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user