view NewTests/PostgresUpgrades/downgrade.sh @ 820:ae32a816cbe4 attach-custom-data

fix storage tests
author Alain Mazy <am@orthanc.team>
date Tue, 27 May 2025 16:20:18 +0200
parents 5140a8917254
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