changeset 979:a84b97f4350e

cleanup
author Alain Mazy <am@orthanc.team>
date Wed, 23 Sep 2026 11:40:41 +0200
parents e6580e4c3b4e
children 07a74087e638
files NewTests/PostgresUpgrades/downgrade.sh
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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