2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#1387] Synchronized upgrade scripts

This commit is contained in:
Francis Dupont
2024-07-27 11:11:38 +02:00
parent df93ef560f
commit c6cb1c76af
5 changed files with 10 additions and 6 deletions

View File

@@ -1774,6 +1774,8 @@ AC_CONFIG_FILES([src/share/database/scripts/mysql/upgrade_022_to_023.sh],
[chmod +x src/share/database/scripts/mysql/upgrade_022_to_023.sh])
AC_CONFIG_FILES([src/share/database/scripts/mysql/upgrade_023_to_024.sh],
[chmod +x src/share/database/scripts/mysql/upgrade_023_to_024.sh])
AC_CONFIG_FILES([src/share/database/scripts/mysql/upgrade_024_to_025.sh],
[chmod +x src/share/database/scripts/mysql/upgrade_024_to_025.sh])
AC_CONFIG_FILES([src/share/database/scripts/mysql/wipe_data.sh],
[chmod +x src/share/database/scripts/mysql/wipe_data.sh])
AC_CONFIG_FILES([src/share/database/scripts/pgsql/Makefile])
@@ -1835,6 +1837,8 @@ AC_CONFIG_FILES([src/share/database/scripts/pgsql/upgrade_022_to_023.sh],
[chmod +x src/share/database/scripts/pgsql/upgrade_022_to_023.sh])
AC_CONFIG_FILES([src/share/database/scripts/pgsql/upgrade_023_to_024.sh],
[chmod +x src/share/database/scripts/pgsql/upgrade_023_to_024.sh])
AC_CONFIG_FILES([src/share/database/scripts/pgsql/upgrade_024_to_025.sh],
[chmod +x src/share/database/scripts/pgsql/upgrade_024_to_025.sh])
AC_CONFIG_FILES([src/share/database/scripts/pgsql/wipe_data.sh],
[chmod +x src/share/database/scripts/pgsql/wipe_data.sh])
AC_CONFIG_FILES([src/share/yang/Makefile])

View File

@@ -52,7 +52,7 @@ const int MLM_MYSQL_FETCH_FAILURE = 0;
/// @name Current database schema version values.
//@{
const uint32_t MYSQL_SCHEMA_VERSION_MAJOR = 24;
const uint32_t MYSQL_SCHEMA_VERSION_MAJOR = 25;
const uint32_t MYSQL_SCHEMA_VERSION_MINOR = 0;
//@}

View File

@@ -18,7 +18,7 @@ namespace isc {
namespace db {
/// @brief Define the PostgreSQL backend version.
const uint32_t PGSQL_SCHEMA_VERSION_MAJOR = 24;
const uint32_t PGSQL_SCHEMA_VERSION_MAJOR = 25;
const uint32_t PGSQL_SCHEMA_VERSION_MINOR = 0;
// Maximum number of parameters that can be used a statement

View File

@@ -6010,7 +6010,7 @@ UPDATE schema_version
-- This line concludes the schema upgrade to version 24.0.
-- This line starts the schema upgrade to version 25.0
-- This line starts the schema upgrade to version 25.0.
-- Add prefix exclude option to IPv6 reservations.
ALTER TABLE ipv6_reservations
@@ -6021,7 +6021,7 @@ ALTER TABLE ipv6_reservations
UPDATE schema_version
SET version = '25', minor = '0';
-- This line concludes the schema upgrade to version 25.0
-- This line concludes the schema upgrade to version 25.0.
# Notes:
#

View File

@@ -6471,12 +6471,12 @@ UPDATE schema_version
-- This line concludes the schema upgrade to version 24.0.
-- This line starts the schema upgrade to version 25.0
-- This line starts the schema upgrade to version 25.0.
-- Add prefix exclude option to IPv6 reservations.
ALTER TABLE ipv6_reservations
ADD COLUMN excluded_prefix INET DEFAULT NULL,
ADD COLUMN excluded_prefix_len SMALLINT NOT NULL;
ADD COLUMN excluded_prefix_len SMALLINT NOT NULL DEFAULT '0';
-- Update the schema version number.
UPDATE schema_version