Mercurial > hg > orthanc-tests
view NewTests/PostgresUpgrades/downgrade.sh @ 702:9af8e3ee07d9 attach-custom-data
fix
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 27 Sep 2024 15:07:23 +0200 |
parents | e3d41c4168c3 |
children | 7b29eaf4ab82 |
line wrap: on
line source
#!/bin/bash pushd /scripts # TODO: change attach-custom-data by the plugin version number or "default" ! apt-get update && apt-get install -y wget && wget https://orthanc.uclouvain.be/hg/orthanc-databases/raw-file/attach-custom-data/PostgreSQL/Plugins/SQL/Downgrades/Rev3ToRev2.sql psql -U postgres -f Rev3ToRev2.sql # if you want to test a downgrade procedure, you may use this code ... # psql -U postgres -f downgrade.sql popd