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:
parent
fc169d33f6
commit
73afe4c468
@ -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>
|
||||
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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=
|
||||
|
||||
|
||||
@ -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=
|
||||
|
||||
|
||||
@ -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=
|
||||
|
||||
|
||||
@ -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=
|
||||
|
||||
|
||||
@ -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=
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user