Skip to content

Commit 13634f8

Browse files
committed
make h2 inmemory use postgresql
1 parent 9205d50 commit 13634f8

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# custom properties used when "h2-inmemory" Profile is used
2-
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL;NON_KEYWORDS=user
2+
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=PostgreSQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=user
3+
spring.datasource.driverClassName=org.h2.Driver
4+
spring.datasource.username=sa
5+
spring.datasource.password=
6+
7+
spring.flyway.enabled=true
8+
spring.flyway.locations=classpath:db/migration/postgresql
9+
10+
spring.jpa.hibernate.ddl-auto=create-drop
11+
spring.jpa.show-sql=true
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# custom properties used when "h2-inmemory" Profile is used
2-
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL;NON_KEYWORDS=user
2+
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE;MODE=PostgreSQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=user
3+
spring.datasource.driverClassName=org.h2.Driver
4+
spring.datasource.username=sa
5+
spring.datasource.password=
6+
7+
spring.flyway.enabled=true
8+
spring.flyway.locations=classpath:db/migration/postgresql
9+
10+
spring.jpa.hibernate.ddl-auto=create-drop
11+
spring.jpa.show-sql=true

0 commit comments

Comments
 (0)