diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-03-22 10:57:02 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-04-04 12:48:04 +0200 |
| commit | 98273d483e68e333f9bf5c39510f9a46f3f3a74f (patch) | |
| tree | 81595631250278654c09ce7b7a83553b6aa0484a /opendc-web/opendc-web-api/src/main/resources/application-dev.properties | |
| parent | f0c472b1792779e63fdeb97a470b46300de00050 (diff) | |
fix(web/api): Support dynamic JSON type selection for DB
This change adds support for dynamically selecting the appropriate JSON
type for the current database. For Postgres, this will be the JSONB
type, while for H2 this is either the BLOB or JSON type.
Diffstat (limited to 'opendc-web/opendc-web-api/src/main/resources/application-dev.properties')
| -rw-r--r-- | opendc-web/opendc-web-api/src/main/resources/application-dev.properties | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-api/src/main/resources/application-dev.properties b/opendc-web/opendc-web-api/src/main/resources/application-dev.properties index 6f941067..84da528f 100644 --- a/opendc-web/opendc-web-api/src/main/resources/application-dev.properties +++ b/opendc-web/opendc-web-api/src/main/resources/application-dev.properties @@ -20,7 +20,7 @@ # Datasource (H2) quarkus.datasource.db-kind = h2 -quarkus.datasource.jdbc.url=jdbc:h2:mem:default;DB_CLOSE_DELAY=-1;INIT=CREATE TYPE IF NOT EXISTS "JSONB" AS text; +quarkus.datasource.jdbc.url=jdbc:h2:mem:default;DB_CLOSE_DELAY=-1;INIT=CREATE TYPE IF NOT EXISTS "JSONB" AS blob; # Hibernate quarkus.hibernate-orm.dialect=org.hibernate.dialect.H2Dialect |
