view NewTests/PostgresUpgrades/downgrade.sh @ 835:7c3fce850fc6

fix pg
author Alain Mazy <am@orthanc.team>
date Mon, 16 Jun 2025 14:21:41 +0200 (5 weeks ago)
parents ba3295716819
children 72540f20d493
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

hg update -r default

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
popd