2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#2452] Fixed diff in postgresql scripts

This commit is contained in:
Thomas Markwalder
2022-07-20 12:00:32 -04:00
parent b0c3dda963
commit 1449d49715

View 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);