2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-10 10:55:19 +00:00

[lib] Address review comments for #83

See  #88 for review comments

modified upgrade files

modified tests
This commit is contained in:
mayya
2018-07-07 09:39:09 +02:00
committed by Tomek Mrugalski
parent 2090af48c1
commit beeadf3d59
14 changed files with 232 additions and 104 deletions

View File

@@ -176,7 +176,6 @@ CREATE TABLE IF NOT EXISTS ipv6_reservations (
prefix_len TINYINT(3) UNSIGNED NOT NULL DEFAULT 128,
type TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
dhcp6_iaid INT UNSIGNED NULL,
auth_key VARCHAR(128) NOT NULL,
host_id INT UNSIGNED NOT NULL,
PRIMARY KEY (reservation_id),
INDEX fk_ipv6_reservations_host_idx (host_id ASC),
@@ -470,6 +469,8 @@ ALTER TABLE dhcp6_options
ALTER TABLE ipv6_reservations
MODIFY reservation_id INT UNSIGNED NOT NULL AUTO_INCREMENT;
# This line concludes database upgrade to version 7.0.
# Add columns holding reservations for siaddr, sname and file fields
# carried within DHCPv4 message.
ALTER TABLE hosts ADD COLUMN dhcp4_next_server INT UNSIGNED NULL;
@@ -763,6 +764,10 @@ CREATE TABLE logs (
# Create search index
CREATE INDEX timestamp_index ON logs (timestamp);
#add auth key for reconfiguration
ALTER TABLE ipv6_reservations
ADD COLUMN auth_key VARCHAR(16) NULL;
# Update the schema version number
UPDATE schema_version
SET version = '7', minor = '0';