From: Razvan Becheriu Date: Wed, 14 Feb 2018 17:45:23 +0000 (+0200) Subject: minor changes X-Git-Tag: kea5574_base~10^2~1^2~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d36c1ea46baee628ffa53577e3c064ca6d76fe4;p=thirdparty%2Fkea.git minor changes --- diff --git a/src/lib/dhcpsrv/mysql_host_data_source.cc b/src/lib/dhcpsrv/mysql_host_data_source.cc index e73c887ad9..1c72afd741 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.cc +++ b/src/lib/dhcpsrv/mysql_host_data_source.cc @@ -2716,7 +2716,7 @@ ConstHostCollection MySqlHostDataSource::getAll(const HWAddrPtr& hwaddr, const DuidPtr& duid) const { - if (duid){ + if (duid) { return (getAll(Host::IDENT_DUID, &duid->getDuid()[0], duid->getDuid().size())); diff --git a/src/share/database/scripts/cql/dhcpdb_create.cql b/src/share/database/scripts/cql/dhcpdb_create.cql index 44ece49f93..9649d28c25 100644 --- a/src/share/database/scripts/cql/dhcpdb_create.cql +++ b/src/share/database/scripts/cql/dhcpdb_create.cql @@ -236,9 +236,9 @@ CREATE INDEX IF NOT EXISTS host_reservationsindex5 ON host_reservations (host_ip CREATE INDEX IF NOT EXISTS host_reservationsindex6 ON host_reservations (reserved_ipv6_prefix_address); CREATE INDEX IF NOT EXISTS host_reservationsindex7 ON host_reservations (reserved_ipv6_prefix_length); --- --- Table structure for table host_identifier_type. --- +-- ----------------------------------------------------- +-- Table `host_identifier_type` +-- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS host_identifier_type ( type int, @@ -253,9 +253,9 @@ INSERT INTO host_identifier_type (type, name) VALUES (2, 'circuit-id'); INSERT INTO host_identifier_type (type, name) VALUES (3, 'client-id'); INSERT INTO host_identifier_type (type, name) VALUES (4, 'flex-id'); --- --- Table structure for table dhcp_option_scope. --- +-- ----------------------------------------------------- +-- Table `dhcp_option_scope` +-- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS dhcp_option_scope ( scope_id int, diff --git a/src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh.in b/src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh.in index dce0167bdc..5635616383 100644 --- a/src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh.in +++ b/src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh.in @@ -63,9 +63,9 @@ CREATE INDEX IF NOT EXISTS host_reservationsindex5 ON host_reservations (host_ip CREATE INDEX IF NOT EXISTS host_reservationsindex6 ON host_reservations (reserved_ipv6_prefix_address); CREATE INDEX IF NOT EXISTS host_reservationsindex7 ON host_reservations (reserved_ipv6_prefix_length); --- --- Table structure for table host_identifier_type. --- +-- ----------------------------------------------------- +-- Table \`host_identifier_type\` +-- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS host_identifier_type ( type int, @@ -80,9 +80,9 @@ INSERT INTO host_identifier_type (type, name) VALUES (2, 'circuit-id'); INSERT INTO host_identifier_type (type, name) VALUES (3, 'client-id'); INSERT INTO host_identifier_type (type, name) VALUES (4, 'flex-id'); --- --- Table structure for table dhcp_option_scope. --- +-- ----------------------------------------------------- +-- Table \`dhcp_option_scope\` +-- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS dhcp_option_scope ( scope_id int,