Mercurial > hg > orthanc-tests
view NewTests/PostgresUpgrades/downgrade.sh @ 791:5140a8917254 attach-custom-data
merged default -> attach-custom-data
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 10 Mar 2025 18:58:07 +0100 (4 months ago) |
parents | 1d5f89f6b700 de1ee0264916 |
children | ba3295716819 |
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 # TODO: change attach-custom-data by the plugin version number or "default" ! pushd orthanc-databases hg update -r attach-custom-data 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