mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#3789] Check only major version in upgrade scripts to allow for intermediary backported schema changes
This commit is contained in:
@@ -26,10 +26,10 @@ else
|
|||||||
. "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"
|
. "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check version.
|
# Check only major version to allow for intermediary backported schema changes.
|
||||||
version=$(mysql_version "${@}")
|
version=$(mysql_version "${@}" | cut -d '.' -f 1)
|
||||||
if test "${version}" != "29.0"; then
|
if test "${version}" != '29'; then
|
||||||
printf 'This script upgrades 29.0 to 30.0. '
|
printf 'This script upgrades 29.* to 30.0. '
|
||||||
printf 'Reported version is %s. Skipping upgrade.\n' "${version}"
|
printf 'Reported version is %s. Skipping upgrade.\n' "${version}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@@ -26,11 +26,11 @@ else
|
|||||||
. "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"
|
. "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=$(pgsql_version "$@")
|
# Check only major version to allow for intermediary backported schema changes.
|
||||||
|
version=$(pgsql_version "${@}" | cut -d '.' -f 1)
|
||||||
if [ "$VERSION" != "28.0" ]; then
|
if test "${version}" != '28'; then
|
||||||
printf 'This script upgrades 28.0 to 29.0. '
|
printf 'This script upgrades 28.* to 29.0. '
|
||||||
printf 'Reported version is %s. Skipping upgrade.\n' "${VERSION}"
|
printf 'Reported version is %s. Skipping upgrade.\n' "${version}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user