Skip to content

Commit

Permalink
fix: Truncate version from previously persisted anchor urls (#1902)
Browse files Browse the repository at this point in the history
* 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
andresrosenthal committed Dec 13, 2023
1 parent 10f8eb6 commit c918e81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<include file="centerui/202310031700-security-server-unique.xml" relativeToChangelogFile="true"/>
<include file="centerui/202311161426-server-clients-enabled.xml" relativeToChangelogFile="true"/>
<include file="centerui/202311161611-server-clients-unique.xml" relativeToChangelogFile="true"/>
<include file="centerui/202312121722-truncate-version-from-anchor-urls.xml" relativeToChangelogFile="true"/>

<!-- must be the last one -->
<changeSet id="separate-admin-user" author="niis" context="admin" runAlways="true" runOnChange="true" runOrder="last">
Expand Down
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>

0 comments on commit c918e81

Please sign in to comment.