# HG changeset patch # User Alain Mazy # Date 1749047221 -7200 # Node ID 3d2cd36378f1cb41e6da63fd91aa65cae93b4bb9 # Parent b5a146281887983209dffadcb9d51164c3d35f08 fix upgrade tests diff -r b5a146281887 -r 3d2cd36378f1 NewTests/PostgresUpgrades/downgrade.sh --- a/NewTests/PostgresUpgrades/downgrade.sh Wed Jun 04 15:30:11 2025 +0200 +++ b/NewTests/PostgresUpgrades/downgrade.sh Wed Jun 04 16:27:01 2025 +0200 @@ -4,9 +4,12 @@ apt-get update && apt-get install -y wget mercurial hg clone https://orthanc.uclouvain.be/hg/orthanc-databases -hg update -r default +pushd /scripts/orthanc-databases/ +hg update -r sql-opti + psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev99ToRev4.sql # if you want to test a downgrade procedure, you may use this code ... # psql -U postgres -f downgrade.sql popd +popd