From: Galen Charlton Date: Mon, 2 Aug 2021 22:12:57 +0000 (-0400) Subject: staff portal: table for portal page entries X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ed7c7d87326e4ffa4c7b5458a4bf98a325bda47;p=working%2FEvergreen.git staff portal: table for portal page entries Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.portal_page_table.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.portal_page_table.sql new file mode 100644 index 0000000000..585eae1edf --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.portal_page_table.sql @@ -0,0 +1,20 @@ +BEGIN; + +CREATE TYPE config.ui_staff_portal_page_entry_type AS ENUM ('link', 'menuitem', 'text', 'header', 'catalogsearch'); + +CREATE TABLE config.ui_staff_portal_page_entry ( + id SERIAL PRIMARY Key, + page_col INTEGER NOT NULL, + col_pos INTEGER NOT NULL, + entry_type config.ui_staff_portal_page_entry_type NOT NULL, + label TEXT, + image_url TEXT, + target_url TEXT, + entry_text TEXT, + owner INT NOT NULL -- REFERENCES actor.org_unit (id) +); + +ALTER TABLE config.ui_staff_portal_page_entry ADD CONSTRAINT cusppe_owner_fkey + FOREIGN KEY (owner) REFERENCES actor.org_unit(id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; + +COMMIT;