2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed dhcp6_subnet_id in dhcp6_pd_pool too

This commit is contained in:
Francis Dupont
2019-02-20 13:37:17 +01:00
parent 0fed9c2663
commit cbe62fed56
2 changed files with 6 additions and 2 deletions

View File

@@ -1807,11 +1807,13 @@ ALTER TABLE dhcp6_global_parameter
REFERENCES parameter_data_type (id);
-- Rename dhcp6_subnet_id column of dhcp6_pool
-- Rename dhcp6_subnet_id column of dhcp6_pool and dhcp6_pd_pool
ALTER TABLE dhcp6_pool
CHANGE dhcp6_subnet_id subnet_id INT(10) UNSIGNED NOT NULL;
ALTER TABLE dhcp6_pd_pool
CHANGE dhcp6_subnet_id subnet_id INT(10) UNSIGNED NOT NULL;
# Update the schema version number
UPDATE schema_version

View File

@@ -490,11 +490,13 @@ ALTER TABLE dhcp6_global_parameter
REFERENCES parameter_data_type (id);
-- Rename dhcp6_subnet_id column of dhcp6_pool
-- Rename dhcp6_subnet_id column of dhcp6_pool and dhcp6_pd_pool
ALTER TABLE dhcp6_pool
CHANGE dhcp6_subnet_id subnet_id INT(10) UNSIGNED NOT NULL;
ALTER TABLE dhcp6_pd_pool
CHANGE dhcp6_subnet_id subnet_id INT(10) UNSIGNED NOT NULL;
# Update the schema version number
UPDATE schema_version