configure.ac
added src/share/database/scripts/pgsql/upgrade_7.0_to_8.0.sh
src/bin/admin/tests/pgsql_tests.sh.in
Updated to test upgrading to 8.0
pgsql_upgrade_7_0_to_8_0() - new function
src/lib/pgsql/pgsql_connection.h
Updated schema version
src/share/database/scripts/pgsql/Makefile.am
added upgrade_7.0_to_8.0.sh.in
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Adds class_id column and constraints to dhcp4/6_option_def tables
Adds preferred lifetime columns to dhcp6_client_class
src/share/database/scripts/pgsql/upgrade_7.0_to_8.0.sh.in
- new file
Adds class_id column and constraints to dhcp4/6_option_def tables
Adds preferred lifetime columns to dhcp6_client_class
src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in
Changed server_tag parameter size to 64 to match tag column size
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in
Replaced use of SMALLINT with BOOLEAN where appropriate.
Added missing returns to two class functions
src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
updated to match new boolean funcs
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/update_6.2_to_7.0.sh.in
Corrected column/variable ambiguity more issues with client class functions
src/bin/admin/tests/pgsql_tests.sh.in
Fixeda another shell check complaint.
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in
- Changed subnet id columns in options tables to BIGINT
- Fixed column/variable ambiguities in client class functions
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in
- Removed id=1 from dhcpX_server inserts, id is SERIAL and
must increment itself
- Changed dhcpX_subnet::subnet_id from SERIAL to BIGINT to
allow for manual ID assignments
- Removed 'STRICT' from SELECT INTO statements, this causes NULL
returns to throw
- Return OLD from all BEFORE triggers
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in
added "OR REPLACE" to function creates
made all TIMESTAMP elements "WITH TIME ZONE"
replaced use of ON CONFLICT
src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
Added arguments to function drops. Posgresql requires argument
lists to match to drop a function.
Initial commit.
src/bin/admin/tests/pgsql_tests.sh.in
pgsql_upgrade_6_2_to_7_0() - replaced insert into dhcp6_server
with selects. Inserting fails without an audit-revision to match.
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Reduced to a single transaction and commit to avoid partial
creations.
Added CB audit procedures, trigger functions, triggers, and
client class elements for v4 and v6.
src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
Added drops of new elements.
src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in
Added CB audit procedures, trigger functions, triggers, and
client class elements for v4 and v6.
Introduced new host API function which allows for configuring selected
backends to accept non-unique IP reservations for multiple hosts. Support
for it was added in MySQL, Postgres and Kea config file. It is not
supported in Cassandra. New migrations for MySQL and Postgres have been
created.
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Adds lease<4/6>_stat tables and triggers
src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
Added drops for lease<4/6>_stat tables and triggers
src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
Adds lease<4/6>_stat tables and triggers
Populates stat tables from existing lease table content
src/bin/admin/tests/mysql_tests.sh.in
mysql_lease6_stat_per_type() - fixed typo in test
src/bin/admin/tests/pgsql_tests.sh.in
run_statement() - new convenience fucntion for
running statement with option expected outcome
pgsql_upgrade_schema_to_version() - new function
which converts the existing schema to a target version
pgsql_lease4_stat_test() - tests v4 stat table and
triggers in an new database
pgsql_lease6_stat_test() - tests v6 stat table and
triggers in an new database.
pgsql_lease6_stat_per_type() - helper function which
tests v6 stat table and triggers using a given address
and lease type
pgsql_lease_stat_upgrade_test() - tests data migration,
stat table and trigger operations on an upgraded database
src/lib/dhcpsrv/pgsql_lease_mgr.*
Added new SQL statements for lease stats queries
PgSqlLeaseStatsQuery
Constructors - added variants to support where clause params
start() - modified to support query variants based
on where clause params
PgSqlLeaseMgr
Added start variants:
- startSubnetLeaseStatsQuery4(const SubnetID& subnet_id)
- startSubnetRangeLeaseStatsQuery4(const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
New unit tests:
- TEST_F(PgSqlLeaseMgrTest, leaseStatsQuery4)
- TEST_F(PgSqlLeaseMgrTest, leaseStatsQuery6)