src/bin/admin/tests/pgsql_tests.sh.in
src/bin/admin/tests/cql_tests.sh.in
src/bin/admin/tests/mysql_tests.sh.in
Added functions that verify subnet id values are updated
src/share/database/scripts/cql/upgrade_2.0_to_3.0.sh.in
src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in
src/share/database/scripts/pgsql/upgrade_4.0_to_5.0.sh.in
Added logic to update subnet id values in existing reservations
and options
src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
Added SQL statements to populate lease4/6_stat tables
from existing lease table content.
src/bin/admin/tests/dhcpdb_create_5.1.mysql
New file used for upgrade testing
src/bin/admin/tests/mysql_tests.sh.in
run_statement() - new convenience function for running SQL
statements with an optional expected return value
mysql_lease4_stat_test() - verifies lease4_stat
table and trigger operations on a new database
mysql_lease6_stat_test()
mysql_lease6_stat_per_type() - new functions
which lease6_stat table and trigger operations
on a new database
mysql_lease_stat_upgrade_test() - new function
which verifies data migration from an earlier
schema and trigger operation
src/share/database/scripts/mysql/dhcpdb_create.mysql
src/share/database/scripts/mysql/dhcpdb_drop.mysql
src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
Added MySQL v4/6 stat tables and triggers
src/lib/dhcpsrv/memfile_lease_mgr.cc
Suppress output of of rows with count values of 0
src/lib/dhcpsrv/mysql_lease_mgr.*
Added v4/v6 lease stat SQL statements
MySqlLeaseStatsQuery
- Added ctor variants that accomodate selection criteria
- Modified start() to handle three variants of selection
MySqlLeaseMgr
- Added start***Query4/6 variants
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
Added tests:
- TEST_F(MySqlLeaseMgrTest, leaseStatsQuery4)
- TEST_F(MySqlLeaseMgrTest, leaseStatsQuery6)
new file:
src/share/database/scripts/mysql/upgrade_5.1_to_5.2.sh.in
renamed:
src/share/database/scripts/mysql/upgrade_5.1_to_6.0.sh.in
-> src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
new file:
src/share/database/scripts/pgsql/upgrade_3.2_to_3.3.sh.in
renamed:
src/share/database/scripts/pgsql/upgrade_3.2_to_4.0.sh.in
-> src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
src/lib/dhcpsrv/pgsql_host_data_source.cc
changed OID_INT4 to OID_INT8 for subnet_id inputs in
TaggedStatements
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.h
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
Added new tests to verify maxium value for subnet_id works
src/share/database/scripts/mysql/dhcpdb_create.mysql
Added 5.1 to 5.2 changes
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Added 3.2 to 3.3 changes