mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-10-03 13:16:15 +00:00
[#2244] Fix mangled constraints on dhcp4_subnet_server
src/share/database/scripts/pgsql/dhcpdb_create.pgsql src/share/database/scripts/pgsql/upgrade_007_to_008.sh.in - fixed mangled names in contraints
This commit is contained in:
@@ -3953,6 +3953,15 @@ BEGIN
|
||||
RETURN;
|
||||
END;$$;
|
||||
|
||||
-- Fix mangled constraints on dhcp4_subnet_server table.
|
||||
ALTER TABLE dhcp4_subnet_server
|
||||
DROP CONSTRAINT fk_dhcp6_subnet_server_server_id,
|
||||
ADD CONSTRAINT fk_dhcp4_subnet_server_server_id
|
||||
FOREIGN KEY (server_id) REFERENCES dhcp4_server (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||
DROP CONSTRAINT fk_dhcp6_subnet_server_subnet_id,
|
||||
ADD CONSTRAINT fk_dhcp4_subnet_server_subnet_id
|
||||
FOREIGN KEY (subnet_id) REFERENCES dhcp4_subnet (subnet_id) ON DELETE CASCADE ON UPDATE NO ACTION;
|
||||
|
||||
-- Update the schema version number
|
||||
UPDATE schema_version
|
||||
SET version = '8', minor = '0';
|
||||
|
Reference in New Issue
Block a user