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