src/lib/dhcpsrv/dhcpsrv_messages.mes
added messages DHCPSRV_MYSQL_FATAL_ERROR, DHCPSRV_PGSQL_FATAL_ERROR
src/lib/dhcpsrv/mysql_lease_mgr.cc
added MySQL client error code include
MySqlLeaseMgr::checkError() - method is no longer inlined in
the header. Expanded to detect unrecoverable errors, log
them and call exit().
src/lib/dhcpsrv/mysql_lease_mgr.h
Removed inline implemenation of MySqlLeaseMgr::checkError(),
and expanded commentary
src/lib/dhcpsrv/pgsql_lease_mgr.cc
PgSqlLeaseMgr::addLeaseCommon() - now uses checkStatementError()
PgSqlLeaseMgr::checkStatementError() - Expanded to detect
unrecoverable errors, log them and call exit().
src/lib/dhcpsrv/pgsql_lease_mgr.h
Expanded commentary for PgSqlLeaseMgr::checkStatementError()
Upgrade adds state column to both lease tables, the state table,
and the lease dump functions.
src/bin/admin/scripts/pgsql/upgrade_1.0_to_2.0.sh -
new script for upgrading postgres schema
src/bin/admin/tests/dhcpdb_create_1.0.pgsql
new sql script for creating 1.0 schema db
configure.ac
added entry for new upgrade script
src/bin/admin/kea-admin.in
pgsql_upgrade() - modified to set Postgres password env variable
and pass in remaining args as psql expects them
src/bin/admin/scripts/pgsql/Makefile.am
added entry for new upgrade script
src/bin/admin/tests/Makefile.am
added entry for 1.0 schema script
src/bin/admin/tests/pgsql_tests.sh.in
pgsql_upgrade_test() - revamped now that Postgres actually
has its first upgrade script.
This change triggered a lot of code refactoring for generating the
NameChangeRequests. Long story short is that the functions responsible
for generating NCRs from the lease information have been moved to
the libdhcpsrv where they better fit and where they may be used
by both allocation engine and the servers.