# Check version.
version=$(mysql_version "${@}")
-if test "${version}" != "27.0"; then
+if test "${version}" != "28.0"; then
printf 'This script upgrades 28.0 to 29.0. '
printf 'Reported version is %s. Skipping upgrade.\n' "${version}"
exit 0
ADD COLUMN ddns_ttl_min BIGINT DEFAULT NULL,
ADD COLUMN ddns_ttl_max BIGINT DEFAULT NULL;
--- New lease state for address registration
-INSERT INTO lease_state VALUES (4, 'registered');
+-- Update the schema version number.
+UPDATE schema_version
+ SET version = '28', minor = '0';
-- This line concludes the schema upgrade to version 28.0.