-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
srm: fix liquibase checksum mismatch
Motivation: The liquibase has new checksum calculation policy, which is not compatible with existing checksums. Modification: add checksum transformation workaround. Result: the existing SRM database can be used with new dCache versions. Issue: #7755 Acked-by: Lea Morschel Target: master Require-book: no Require-notes: no
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
modules/srm-server/src/main/resources/org/dcache/srm/request/sql/00-liquibase-fixes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<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.29.xsd"> | ||
|
||
<!-- | ||
IMPORTANT: | ||
This file contains changes that should be applied prior any other schema changes, | ||
typically to fix liquibase or schema issues that prevent other changes from being applied. | ||
--> | ||
|
||
<changeSet id="0.1" author="tigran" runOrder="first"> | ||
|
||
<comment> | ||
Fix liquibase issue with duplicate id and mismatching md5sums in databasechangelog table. | ||
This change set should be applied before any other changes. | ||
</comment> | ||
|
||
<sql> | ||
UPDATE databasechangelog SET md5sum = '7:3cf94dc86efe2152925a739c69fd464d' WHERE md5sum = '7:0e1c15013e23f1df41d4035279a1e832'; | ||
UPDATE databasechangelog SET md5sum = '7:59f95bea151c12b6f158a7f5dc330095' WHERE md5sum = '7:6956b64fca6692e79e878e317715a628'; | ||
</sql> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters