blob: bdce0fbeb73e1f98610cc3ac826ecb99d88144d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
spell_ok $SPELL && local OLDVERSION="$(installed_version $SPELL)" || return 0
if [[ ${OLDVERSION%.*} != ${VERSION%.*} ]]; then
message "${PROBLEM_COLOR}" &&
message "You are about to upgrade (downgrade) your PostgreSQL installation to a" &&
message "different major version, please be aware that a database repository will only" &&
message "work with a specific major version of PostgreSQL. You need to make a dump of" &&
message "your entire database system, create a new repository with the new PostgreSQL" &&
message "version and import your dump. You should not continue with this upgrade" &&
message "(downgrade) if you do not have a dump of your database system. If you need" &&
message "help creating a dump of your database system see the PostgreSQL HOWTO at" &&
message "(http://wiki.sourcemage.org/HowTo/Postgresql) for instructions." &&
message "${DEFAULT_COLOR}" &&
if ! query "Do you wish to upgrade PostgreSQL now?" n; then
return 1
fi
fi
|