From d8bfca33c712201ce73f291ae9c5e6cddc1cb55a Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Mon, 31 May 2021 15:32:10 +0200 Subject: [PATCH] [#90] dhcp6_server added to schema --- .../scripts/pgsql/upgrade_6.2_to_7.0.sh.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in b/src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in index 75dc9d2c97..b2f2952d77 100644 --- a/src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in +++ b/src/share/database/scripts/pgsql/upgrade_6.2_to_7.0.sh.in @@ -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';