view NewTests/PostgresUpgrades/downgrade.sh @ 793:f0cc40ca6fb1 attach-custom-data

new deflated tests
author Alain Mazy <am@orthanc.team>
date Mon, 17 Mar 2025 17:02:56 +0100
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