]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2452] Fixed diff in postgresql scripts
authorThomas Markwalder <tmark@isc.org>
Wed, 20 Jul 2022 16:00:32 +0000 (12:00 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 22 Jul 2022 14:13:55 +0000 (10:13 -0400)
src/share/database/scripts/pgsql/dhcpdb_create.pgsql

index 7c1ce318706f6d67b3edb96a9a7db0080a71d48c..9187f8710f2f44c39f3f9ba811aec33736309aa3 100644 (file)
@@ -5612,12 +5612,12 @@ CREATE INDEX key_dhcp6_identifier on hosts (dhcp_identifier, dhcp_identifier_typ
 
 -- Modify existing indexes to include subnet_id values of 0, so index is also used
 -- for global reservations.
-DROP INDEX key_dhcp4_identifier_subnet_id;
+DROP INDEX IF EXISTS key_dhcp4_identifier_subnet_id;
 CREATE UNIQUE INDEX key_dhcp4_identifier_subnet_id ON hosts
         (dhcp_identifier ASC, dhcp_identifier_type ASC, dhcp4_subnet_id ASC)
     WHERE (dhcp4_subnet_id IS NOT NULL);
 
-DROP INDEX key_dhcp6_identifier_subnet_id;
+DROP INDEX IF EXISTS key_dhcp6_identifier_subnet_id;
 CREATE UNIQUE INDEX key_dhcp6_identifier_subnet_id ON hosts
         (dhcp_identifier ASC, dhcp_identifier_type ASC, dhcp6_subnet_id ASC)
     WHERE (dhcp6_subnet_id IS NOT NULL);