Skip to content

Commit

Permalink
Update DGC-Lib to 1.1.2 (#96)
Browse files Browse the repository at this point in the history
Add Liquibase Changeset to fix invalid Certificate Thumbprints
  • Loading branch information
f11h authored Jun 30, 2021
1 parent 922f779 commit 5c570c7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<dependency>
<groupId>eu.europa.ec.dgc</groupId>
<artifactId>dgc-lib</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>com.vdurmont</groupId>
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/db/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
<include file="db/changelog/increase-column-size-for-valueset.xml"/>
<include file="db/changelog/add-validation-rule-table.xml"/>
<include file="db/changelog/add-unique-constraints.xml"/>
<include file="db/changelog/fix-certificate-thumbprints.xml"/>
</databaseChangeLog>
20 changes: 20 additions & 0 deletions src/main/resources/db/changelog/fix-certificate-thumbprints.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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"
objectQuotingStrategy="QUOTE_ONLY_RESERVED_WORDS">
<changeSet id="fix-thumbprints" author="f11h">

<sql dbms="h2, mysql">
UPDATE trusted_party SET thumbprint = concat('00', thumbprint) WHERE length(thumbprint) = 62;
</sql>

<sql dbms="h2, mysql">
UPDATE signer_information SET thumbprint = concat('00', thumbprint) WHERE length(thumbprint) = 62;
</sql>

</changeSet>

</databaseChangeLog>

0 comments on commit 5c570c7

Please sign in to comment.