# HG changeset patch # User Alain Mazy # Date 1731659909 -3600 # Node ID 5d04bdbd490669b82d06bd2668f41782c14dd17e # Parent e2cc7f8d91311a1737bc8c4c581abfa76c96ffc2 fix forbidden access to file on mercurial server diff -r e2cc7f8d9131 -r 5d04bdbd4906 NewTests/PostgresUpgrades/downgrade.sh --- a/NewTests/PostgresUpgrades/downgrade.sh Thu Nov 07 10:31:06 2024 +0100 +++ b/NewTests/PostgresUpgrades/downgrade.sh Fri Nov 15 09:38:29 2024 +0100 @@ -2,9 +2,9 @@ pushd /scripts -# TODO: change pg-transactions by the plugin version number ! -apt-get update && apt-get install -y wget && wget https://orthanc.uclouvain.be/hg/orthanc-databases/raw-file/default/PostgreSQL/Plugins/SQL/Downgrades/Rev2ToRev1.sql -psql -U postgres -f Rev2ToRev1.sql +apt-get update && apt-get install -y wget mercurial +hg clone https://orthanc.uclouvain.be/hg/orthanc-databases +psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev2ToRev1.sql # if you want to test a downgrade procedure, you may use this code ... # psql -U postgres -f downgrade.sql