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

[#90] dhcp6_server added to schema

This commit is contained in:
Tomek Mrugalski
2021-05-31 15:32:10 +02:00
committed by Tomek Mrugalski
parent 6183457734
commit d8bfca33c7

View File

@@ -246,6 +246,21 @@ CREATE TRIGGER dhcp6_pd_pool_modification_ts_update
FOR EACH ROW EXECUTE PROCEDURE modification_ts_update();
CREATE TABLE dhcp6_server (
id SERIAL PRIMARY KEY NOT NULL,
tag varchar(256) NOT NULL,
description text DEFAULT NULL,
modification_ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE UNIQUE INDEX dhcp6_server_tag_unique on dhcp6_server(tag);
CREATE INDEX key_dhcp6_server_modification_ts on dhcp6_server (modification_ts);
CREATE TRIGGER dhcp6_server_modification_ts_update
AFTER UPDATE ON dhcp6_server
FOR EACH ROW EXECUTE PROCEDURE modification_ts_update();
-- Update the schema version number
UPDATE schema_version
SET version = '7', minor = '0';