Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3fe46cd

Browse files
dependabot[bot]php-coder
authored andcommittedJan 25, 2024
chore: bump com.h2database:h2 from 1.4.200 to 2.2.224
Bumps [com.h2database:h2](https://github.com/h2database/h2database) from 1.4.200 to 2.2.224. - [Release notes](https://github.com/h2database/h2database/releases) - [Commits](h2database/h2database@version-1.4.200...version-2.2.224) --- updated-dependencies: - dependency-name: com.h2database:h2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 446dc91 commit 3fe46cd

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed
 

‎pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@
574574
<groovy-old.version>2.0.8</groovy-old.version>
575575

576576
<!-- Redefine default value from spring-boot-dependencies -->
577-
<h2.version>1.4.200</h2.version>
577+
<h2.version>2.2.224</h2.version>
578578

579579
<!-- Redefine default value from spring-boot-dependencies -->
580580
<hibernate-validator.version>6.1.7.Final</hibernate-validator.version>

‎src/main/resources/liquibase/version/0.4.8.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
77

8-
8+
<include file="0.4.8/2024-01-25--rename_site_parser_params_value_column.xml" relativeToChangelogFile="true" />
99

1010
</databaseChangeLog>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
6+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
7+
8+
<!--
9+
Rename column "value" as it's a reserved word in SQL.
10+
Newer versions of H2 don't allow to use it as unquoted identifier.
11+
See for details: https://github.com/h2database/h2database/issues/3954
12+
-->
13+
<changeSet id="rename-site_parser_params-value-field" author="php-coder" context="scheme">
14+
15+
<renameColumn
16+
tableName="site_parser_params"
17+
oldColumnName="value"
18+
newColumnName="val"
19+
columnDataType="VARCHAR(100)" />
20+
21+
</changeSet>
22+
23+
</databaseChangeLog>

‎src/main/resources/sql/site_parser_dao_queries.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ site_parser.find_like_matched_url = \
22
SELECT parser_id AS id \
33
FROM site_parser_params \
44
WHERE name = 'matched_url' \
5-
AND value = :url \
6-
OR :url LIKE CONCAT(value, '%')
5+
AND val = :url \
6+
OR :url LIKE CONCAT(val, '%')
77

88
site_parser.find_names = \
99
SELECT name \
@@ -12,11 +12,11 @@ ORDER BY id
1212

1313
site_parser_param.find_all_with_parser_name = \
1414
SELECT name \
15-
, value \
15+
, val \
1616
FROM site_parser_params \
1717
WHERE parser_id = :parser_id \
1818
UNION ALL \
1919
SELECT 'name' AS name \
20-
, name AS value \
20+
, name AS val \
2121
FROM site_parsers \
2222
WHERE id = :parser_id

0 commit comments

Comments
 (0)
Please sign in to comment.