]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2957] Addressed review comments
authorThomas Markwalder <tmark@isc.org>
Fri, 19 Apr 2024 19:22:50 +0000 (19:22 +0000)
committerThomas Markwalder <tmark@isc.org>
Mon, 22 Apr 2024 11:25:43 +0000 (11:25 +0000)
Minor corrections, added ChangeLog and fixed db-version UT.

ChangeLog
src/bin/admin/tests/pgsql_tests.sh.in
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_020_to_021.sh.in

index 712aef481c12a0277fe22ab2712d3c179cac57ba..87e92e9b3c6f019f1509456b468901c77a75418c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2221.  [bug]           tmark
+       Corrected an index on the dhcp4_servers table
+       in the PostgreSQL schema.
+       (Gitlab #2957)
+
 2220.  [bug]           marcin
        Exclude packets ignored during load balancing from the
        pkt6-receive-drop statistics. The packets dropped by the
index f710bf8fbb5e8f46ebc66339ca966808bdf015b8..4ca9c22e9c29967bb57038df4932cac920ed6ac9 100644 (file)
@@ -142,7 +142,7 @@ pgsql_db_version_test() {
     run_command \
         "${kea_admin}" db-version pgsql -u "${db_user}" -p "${db_password}" -n "${db_name}"
     version="${OUTPUT}"
-    assert_str_eq "20.0" "${version}" "Expected kea-admin to return %s, returned value was %s"
+    assert_str_eq "21.0" "${version}" "Expected kea-admin to return %s, returned value was %s"
 
     # Let's wipe the whole database
     pgsql_wipe
@@ -888,7 +888,7 @@ pgsql_upgrade_18_to_19_test() {
 }
 
 pgsql_upgrade_19_to_20_test() {
-    # Verify that lease6_by_sunet_id_address index on lease6 is keyed by
+    # Verify that lease6_by_subnet_id_address index on lease6 is keyed by
     # attributes number 5 and 1 (i.e. subnet-id and address)
     qry="select ix.indkey as keys from pg_class t, pg_class i, pg_index ix \
         where t.oid = ix.indrelid and i.oid = ix.indexrelid and \
index bececdcd769b94591ac52df445ee6df33042c00b..c86069fda042fc18b1211111b65f1c696e928869 100644 (file)
@@ -6327,7 +6327,7 @@ UPDATE schema_version
 
 -- This line starts the schema upgrade to version 21.0.
 
--- Correct dhcp4_server_modifcation_ts to index the dhcp4_server table.
+-- Correct dhcp4_server_modification_ts to index the dhcp4_server table.
 DROP INDEX dhcp4_server_modification_ts;
 CREATE INDEX dhcp4_server_modification_ts ON dhcp4_server (modification_ts);
 
index 65b2e0496e90e79ae5e4c2154bb9729ec7630ab3..69e6c0e1955b502bdde3e3c399e80317ba58cc16 100644 (file)
@@ -39,7 +39,7 @@ START TRANSACTION;
 
 -- This line starts the schema upgrade to version 21.0.
 
--- Correct dhcp4_server_modifcation_ts to index the dhcp4_server table.
+-- Correct dhcp4_server_modification_ts to index the dhcp4_server table.
 DROP INDEX dhcp4_server_modification_ts;
 CREATE INDEX dhcp4_server_modification_ts ON dhcp4_server (modification_ts);