Use a -2 suffix in H2's JDBC URLs to indicate H2 2.0

This avoids incompatibilities with files that might be lying around from
H2 1.4
This commit is contained in:
Lukas Eder 2022-01-05 09:49:47 +01:00
parent fc169d33f6
commit 73afe4c468
7 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
<db.url>jdbc:h2:~/flyway-test</db.url>
<db.url>jdbc:h2:~/jooq-flyway-example-2</db.url>
<db.username>sa</db.username>
</properties>

View File

@ -20,7 +20,7 @@ public class AfterMigrationTestJava {
@Test
public void testQueryingAfterMigration() throws Exception {
try (Connection c = DriverManager.getConnection("jdbc:h2:~/flyway-test", "sa", "")) {
try (Connection c = DriverManager.getConnection("jdbc:h2:~/jooq-flyway-example-2", "sa", "")) {
Result<?> result =
DSL.using(c)
.select(

View File

@ -1,6 +1,6 @@
#Database Configuration
db.driver=org.h2.Driver
db.url=jdbc:h2:~/jooq-javafx-example
db.url=jdbc:h2:~/jooq-javafx-example-2
db.username=sa
db.password=

View File

@ -1,6 +1,6 @@
#Database Configuration
db.driver=org.h2.Driver
db.url=jdbc:h2:~/jooq-kotlin-example
db.url=jdbc:h2:~/jooq-kotlin-example-2
db.username=sa
db.password=

View File

@ -1,6 +1,6 @@
#Database Configuration
db.driver=org.h2.Driver
db.url=jdbc:h2:~/jooq-spark-example
db.url=jdbc:h2:~/jooq-spark-example-2
db.username=sa
db.password=

View File

@ -1,6 +1,6 @@
#Database Configuration
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.url=jdbc:h2:~/jooq-spring-boot-example
spring.datasource.url=jdbc:h2:~/jooq-spring-boot-example-2
spring.datasource.username=sa
spring.datasource.password=

View File

@ -1,6 +1,6 @@
#Database Configuration
db.driver=org.h2.Driver
db.url=jdbc:h2:~/jooq-spring-example
db.url=jdbc:h2:~/jooq-spring-example-2
db.username=sa
db.password=