Mercurial > hg > orthanc-tests
view NewTests/PostgresUpgrades/downgrade.sh @ 781:ff1ab89bc1c0 attach-custom-data
fix
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 04 Feb 2025 17:33:21 +0100 |
parents | 7b29eaf4ab82 |
children | 1d5f89f6b700 |
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 # TODO: change attach-custom-data by the plugin version number or "default" ! hg update -r attach-custom-data psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev4ToRev3.sql psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev3ToRev2.sql # if you want to test a downgrade procedure, you may use this code ... # psql -U postgres -f downgrade.sql popd