Skip to content

Commit

Permalink
Upped h2 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Apr 5, 2024
1 parent 65ef14d commit f91df50
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ cross-institution registrations.
- Java 8
- Maven 3

Set the JAVA_HOME property for maven (example for macOS):
```
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/
```

## [Building and running](#building-and-running)

### [The student-mobility-inteken-ontvanger-generiek-server](#student-mobility-inteken-ontvanger-generiek-server)
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Upgrade to version 2 will break the current migrations. You can't change them as Flyway will complain. -->
<!-- Upgrade to version 2 will require the removal of the current data. -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.200</version>
<version>2.2.224</version>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/db/h2/migration/V0__initial.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE enrollment_requests
(
id BIGINT(20) NOT NULL AUTO_INCREMENT,
identifier VARCHAR(254) NOT NULL,
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
identifier VARCHAR(255) NOT NULL,
person_uri VARCHAR(255) NOT NULL,
results_uri VARCHAR(255) NOT NULL,
person_id VARCHAR(255),
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/db/h2/migration/V4__add_associations.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CREATE TABLE associations
(
id BIGINT(20) NOT NULL AUTO_INCREMENT,
association_id VARCHAR(254) NOT NULL,
enrollment_request_id BIGINT(20) NOT NULL,
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
association_id VARCHAR(255) NOT NULL,
enrollment_request_id BIGINT NOT NULL,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT fk_enrollment_request_id FOREIGN KEY (enrollment_request_id) REFERENCES enrollment_requests(id) ON DELETE CASCADE
);
Expand Down

0 comments on commit f91df50

Please sign in to comment.