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:
@@ -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';
|
||||||
|
@@ -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';
|
||||||
|
Reference in New Issue
Block a user