Skip to content

Commit

Permalink
chore: bump com.h2database:h2 from 1.4.200 to 2.2.224
Browse files Browse the repository at this point in the history
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] <support@github.com>
  • Loading branch information
dependabot[bot] authored and php-coder committed Jan 25, 2024
1 parent 446dc91 commit 3fe46cd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
<groovy-old.version>2.0.8</groovy-old.version>

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

<!-- Redefine default value from spring-boot-dependencies -->
<hibernate-validator.version>6.1.7.Final</hibernate-validator.version>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/liquibase/version/0.4.8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">


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

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">

<!--
Rename column "value" as it's a reserved word in SQL.
Newer versions of H2 don't allow to use it as unquoted identifier.
See for details: https://github.com/h2database/h2database/issues/3954
-->
<changeSet id="rename-site_parser_params-value-field" author="php-coder" context="scheme">

<renameColumn
tableName="site_parser_params"
oldColumnName="value"
newColumnName="val"
columnDataType="VARCHAR(100)" />

</changeSet>

</databaseChangeLog>
8 changes: 4 additions & 4 deletions src/main/resources/sql/site_parser_dao_queries.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ site_parser.find_like_matched_url = \
SELECT parser_id AS id \
FROM site_parser_params \
WHERE name = 'matched_url' \
AND value = :url \
OR :url LIKE CONCAT(value, '%')
AND val = :url \
OR :url LIKE CONCAT(val, '%')

site_parser.find_names = \
SELECT name \
Expand All @@ -12,11 +12,11 @@ ORDER BY id

site_parser_param.find_all_with_parser_name = \
SELECT name \
, value \
, val \
FROM site_parser_params \
WHERE parser_id = :parser_id \
UNION ALL \
SELECT 'name' AS name \
, name AS value \
, name AS val \
FROM site_parsers \
WHERE id = :parser_id

0 comments on commit 3fe46cd

Please sign in to comment.