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-test.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-test.properties')
| -rw-r--r-- | opendc-web/opendc-web-api/src/main/resources/application-test.properties | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-api/src/main/resources/application-test.properties b/opendc-web/opendc-web-api/src/main/resources/application-test.properties index ce3a9473..0710f200 100644 --- a/opendc-web/opendc-web-api/src/main/resources/application-test.properties +++ b/opendc-web/opendc-web-api/src/main/resources/application-test.properties @@ -20,7 +20,7 @@ # Datasource configuration quarkus.datasource.db-kind = h2 -quarkus.datasource.jdbc.url=jdbc:h2:mem:default;DB_CLOSE_DELAY=-1;INIT=CREATE TYPE "JSONB" AS text; +quarkus.datasource.jdbc.url=jdbc:h2:mem:default;DB_CLOSE_DELAY=-1;INIT=CREATE TYPE "JSONB" AS blob; quarkus.hibernate-orm.dialect=org.hibernate.dialect.H2Dialect quarkus.hibernate-orm.database.generation=drop-and-create |
