ALTER TABLE dhcp4_options
- MODIFY COLUMN modification_ts TIMESTAMP NOT NULL
+ MODIFY COLUMN modification_ts TIMESTAMP NOT NULL
DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE dhcp6_options
- MODIFY COLUMN modification_ts TIMESTAMP NOT NULL
+ MODIFY COLUMN modification_ts TIMESTAMP NOT NULL
DEFAULT CURRENT_TIMESTAMP;
-- -----------------------------------------------------
REFERENCES parameter_data_type (id);
+-- Rename dhcp6_subnet_id column of dhcp6_pool
+
+ALTER TABLE dhcp6_pool
+ CHANGE dhcp6_subnet_id subnet_id INT(10) UNSIGNED NOT NULL;
+
+
# Update the schema version number
UPDATE schema_version
SET version = '8', minor = '0';
-- -----------------------------------------------------
-- Drop columns from the dhcp4_audit table which now
-- belong to the dhcp4_audit_revision.
--- -----------------------------------------------------
+-- -----------------------------------------------------
ALTER TABLE dhcp4_audit
DROP COLUMN modification_ts,
DROP COLUMN log_message;
DELIMITER ;
-- -----------------------------------------------------
--- Table parameter_data_type
+-- Table `parameter_data_type`
-- Reflects an enum used by Kea to define supported
-- data types for the simple configuration parameters,
-- e.g. global parameters used by DHCP servers.
REFERENCES parameter_data_type (id);
+-- Rename dhcp6_subnet_id column of dhcp6_pool
+
+ALTER TABLE dhcp6_pool
+ CHANGE dhcp6_subnet_id subnet_id INT(10) UNSIGNED NOT NULL;
+
+
# Update the schema version number
UPDATE schema_version
SET version = '8', minor = '0';