-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Truncate version from previously persisted anchor urls (#1902)
* fix: Truncate version from previously persisted anchor urls Refs: XRDDEV-2548 * fix: Truncate version from previously persisted anchor urls Refs: XRDDEV-2548
- Loading branch information
1 parent
10f8eb6
commit c918e81
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
.../src/main/resources/liquibase/centerui/202312121722-truncate-version-from-anchor-urls.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,13 @@ | ||
<?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-3.5.xsd" | ||
logicalFilePath="centerui/202312121722-truncate-query-string-from-anchor-urls.xml"> | ||
|
||
<changeSet author="niis" id="202312121722-truncate-version-from-anchor-urls"> | ||
<comment>Truncate fixated version from download url of federated instances' configuration</comment> | ||
<sql> | ||
UPDATE anchor_urls SET url = regexp_replace(url, '\?version=2$', ''); | ||
</sql> | ||
</changeSet> | ||
</databaseChangeLog> |