# HG changeset patch # User Alain Mazy # Date 1790156441 -7200 # Node ID a84b97f4350eb8c244115afc9e36d2905fb335f7 # Parent e6580e4c3b4e1a5441bbc1149e439667d2f076e6 cleanup diff -r e6580e4c3b4e -r a84b97f4350e NewTests/PostgresUpgrades/downgrade.sh --- a/NewTests/PostgresUpgrades/downgrade.sh Wed Sep 23 11:33:51 2026 +0200 +++ b/NewTests/PostgresUpgrades/downgrade.sh Wed Sep 23 11:40:41 2026 +0200 @@ -20,10 +20,7 @@ wget https://orthanc.uclouvain.be/hg/orthanc-databases/raw-file/default/PostgreSQL/Plugins/SQL/Downgrades/Rev11ToRev10.sql --output-document /tmp/downgrade.sql psql -v ON_ERROR_STOP=1 -U postgres -f /tmp/downgrade.sql -if [ $? -ne 0 ]; then - echo "psql failed!" - exit 1 -fi + # if you want to test a downgrade procedure, you may use this code ... -# psql -U postgres -f downgrade.sql +# psql -v ON_ERROR_STOP=1 -U postgres -f downgrade.sql popd