view NewTests/PostgresUpgrades/downgrade.sh @ 854:6403b6da775e pg-next-699 tip

pg tests for new revision
author Alain Mazy <am@orthanc.team>
date Mon, 22 Sep 2025 12:25:42 +0200
parents 895215bfb8aa
children
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 /scripts/orthanc-databases/
# hg update -r default

psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev699ToRev6.sql

# if you want to test a downgrade procedure, you may use this code ...
# psql -U postgres -f downgrade.sql
popd
popd