Mercurial > hg > orthanc-tests
view NewTests/PostgresUpgrades/downgrade.sh @ 841:f7bb0bf6fb50
fix
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 10 Jul 2025 09:17:52 +0200 |
parents | 7c3fce850fc6 |
children | 72540f20d493 |
line wrap: on
line source
#!/bin/bash pushd /scripts apt-get update && apt-get install -y wget mercurial hg clone https://orthanc.uclouvain.be/hg/orthanc-databases pushd orthanc-databases hg update -r default psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev5ToRev4.sql # if you want to test a downgrade procedure, you may use this code ... # psql -U postgres -f downgrade.sql popd popd