2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed a dhcp6_pool (unused table) column

This commit is contained in:
Francis Dupont
2019-02-08 19:15:19 +01:00
parent d97ba7545f
commit b7dcffd2a1
2 changed files with 16 additions and 4 deletions

View File

@@ -1336,11 +1336,11 @@ SET version = '7', minor = '0';
ALTER TABLE dhcp4_options ALTER TABLE dhcp4_options
MODIFY COLUMN modification_ts TIMESTAMP NOT NULL MODIFY COLUMN modification_ts TIMESTAMP NOT NULL
DEFAULT CURRENT_TIMESTAMP; DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE dhcp6_options ALTER TABLE dhcp6_options
MODIFY COLUMN modification_ts TIMESTAMP NOT NULL MODIFY COLUMN modification_ts TIMESTAMP NOT NULL
DEFAULT CURRENT_TIMESTAMP; DEFAULT CURRENT_TIMESTAMP;
-- ----------------------------------------------------- -- -----------------------------------------------------
@@ -1807,6 +1807,12 @@ ALTER TABLE dhcp6_global_parameter
REFERENCES parameter_data_type (id); 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 the schema version number
UPDATE schema_version UPDATE schema_version
SET version = '8', minor = '0'; SET version = '8', minor = '0';

View File

@@ -138,7 +138,7 @@ CREATE TABLE IF NOT EXISTS dhcp4_audit_revision (
-- ----------------------------------------------------- -- -----------------------------------------------------
-- Drop columns from the dhcp4_audit table which now -- Drop columns from the dhcp4_audit table which now
-- belong to the dhcp4_audit_revision. -- belong to the dhcp4_audit_revision.
-- ----------------------------------------------------- -- -----------------------------------------------------
ALTER TABLE dhcp4_audit ALTER TABLE dhcp4_audit
DROP COLUMN modification_ts, DROP COLUMN modification_ts,
DROP COLUMN log_message; DROP COLUMN log_message;
@@ -458,7 +458,7 @@ CREATE TRIGGER dhcp4_options_ADEL AFTER DELETE ON dhcp4_options
DELIMITER ; DELIMITER ;
-- ----------------------------------------------------- -- -----------------------------------------------------
-- Table parameter_data_type -- Table `parameter_data_type`
-- Reflects an enum used by Kea to define supported -- Reflects an enum used by Kea to define supported
-- data types for the simple configuration parameters, -- data types for the simple configuration parameters,
-- e.g. global parameters used by DHCP servers. -- e.g. global parameters used by DHCP servers.
@@ -490,6 +490,12 @@ ALTER TABLE dhcp6_global_parameter
REFERENCES parameter_data_type (id); 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 the schema version number
UPDATE schema_version UPDATE schema_version
SET version = '8', minor = '0'; SET version = '8', minor = '0';