]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5522] Corrected copy-paste error in postgresql create and upgrade scripts
authorThomas Markwalder <tmark@isc.org>
Fri, 2 Feb 2018 14:02:10 +0000 (09:02 -0500)
committerThomas Markwalder <tmark@isc.org>
Fri, 2 Feb 2018 14:02:10 +0000 (09:02 -0500)
Both scripts altered the host table dhcp4_subnet_id column twice
rather than dhcp6_subnet_id column.

src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_3.2_to_3.3.sh.in

index af1e27bf3c4d6f024e14e48e104670423f2a2908..819af774968cb51254d6bc1366ab384bf4d8d9a4 100644 (file)
@@ -532,7 +532,7 @@ UPDATE schema_version
 
 -- Change subnet ID columns type to BIGINT to match lease4/6 tables 
 ALTER TABLE hosts ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
-ALTER TABLE hosts ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
+ALTER TABLE hosts ALTER COLUMN dhcp6_subnet_id TYPE BIGINT;
 
 ALTER TABLE dhcp4_options ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
 ALTER TABLE dhcp6_options ALTER COLUMN dhcp6_subnet_id TYPE BIGINT;
index 3b5fa604cffc530a5164bbcab127d8dfc790166e..b8c72480164b7caab5c2809e2013cf26f8f5ee16 100644 (file)
@@ -21,7 +21,7 @@ START TRANSACTION;
 
 -- Change subnet ID columns type to BIGINT to match lease4/6 tables 
 ALTER TABLE hosts ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
-ALTER TABLE hosts ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
+ALTER TABLE hosts ALTER COLUMN dhcp6_subnet_id TYPE BIGINT;
 
 ALTER TABLE dhcp4_options ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
 ALTER TABLE dhcp6_options ALTER COLUMN dhcp6_subnet_id TYPE BIGINT;