Skip to content

Commit ff1469f

Browse files
authored
Upgrade vulnerable MySQL connector and H2 dependencies (#53)
1 parent 5c14fd2 commit ff1469f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ configurations[nativeCliTest.runtimeOnlyConfigurationName].extendsFrom(configura
4242
dependencies {
4343
// This dependency is used by the application.
4444
implementation "ch.qos.logback:logback-classic:1.5.16"
45-
runtimeOnly 'mysql:mysql-connector-java:8.0.33'
46-
runtimeOnly 'com.h2database:h2:1.4.200'
47-
runtimeOnly 'mysql:mysql-connector-java:8.0.33'
45+
runtimeOnly 'com.mysql:mysql-connector-j:9.2.0'
46+
runtimeOnly 'com.h2database:h2:2.2.224'
4847
runtimeOnly 'org.xerial:sqlite-jdbc:3.42.0.0'
4948
runtimeOnly("org.postgresql:postgresql:42.7.3")
5049
implementation 'info.picocli:picocli:4.6.3'

src/nativeCliTest/resources/migrate-db/h2/V01__create_organization_table.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CREATE TABLE `organization`
1010
`address` varchar(255) DEFAULT NULL,
1111
`zip` varchar(25) DEFAULT NULL,
1212
`country` varchar(125) DEFAULT NULL,
13-
`deleted` tinyint(1) NOT NULL DEFAULT 0,
13+
`deleted` boolean NOT NULL DEFAULT false,
1414
`date_created` datetime NOT NULL,
1515
`last_updated` datetime NOT NULL,
1616
PRIMARY KEY (id)
@@ -31,10 +31,10 @@ CREATE TABLE `license`
3131
`last_updated` datetime NOT NULL,
3232
`last_accessed` datetime,
3333
`last_access_ip` varchar(255) DEFAULT NULL,
34-
`access_count` int(11) NOT NULL DEFAULT 0,
35-
`suspended` tinyint(1) NOT NULL DEFAULT 0,
36-
`deleted` tinyint(1) NOT NULL DEFAULT 0,
37-
`expired` tinyint(1) NOT NULL DEFAULT 0,
34+
`access_count` int NOT NULL DEFAULT 0,
35+
`suspended` boolean NOT NULL DEFAULT false,
36+
`deleted` boolean NOT NULL DEFAULT false,
37+
`expired` boolean NOT NULL DEFAULT false,
3838
PRIMARY KEY (id),
3939
FOREIGN KEY (organization_id) REFERENCES organization(id)
4040
);

0 commit comments

Comments
 (0)