]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed dhcp6_subnet_i...
authorFrancis Dupont <fdupont@isc.org>
Wed, 20 Feb 2019 12:37:17 +0000 (13:37 +0100)
committerFrancis Dupont <fdupont@isc.org>
Wed, 20 Feb 2019 16:09:26 +0000 (11:09 -0500)
src/share/database/scripts/mysql/dhcpdb_create.mysql
src/share/database/scripts/mysql/upgrade_7.0_to_8.0.sh.in

index 5247e556308e106ed1d933194512a6afc149763c..286900206fdbcd8ef4d56a288426d66fd35751db 100644 (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
index 070f7547f5e602fce0102c7fb743ae096afe14a1..775541e971a6513e13885e0596bd6fb962dfad6e 100644 (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