Mercurial > gemma
view schema/updates/1402/01.group_layers.sql @ 5677:a57be8bfb6ea sr-v2
More suited file names.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 11 Feb 2024 09:51:21 +0100 |
parents | 45ef039cf4a8 |
children |
line wrap: on
line source
CREATE TABLE sys_admin.layer_groups ( name varchar PRIMARY KEY ); CREATE TABLE sys_admin.grouped_layers ( group_name varchar REFERENCES sys_admin.layer_groups ON DELETE CASCADE, schema varchar, name varchar, ord int NOT NULL DEFAULT 0, PRIMARY KEY (group_name, schema, name), UNIQUE (group_name, schema, name, ord), FOREIGN KEY(schema, name) REFERENCES sys_admin.published_services ); GRANT SELECT ON sys_admin.layer_groups, sys_admin.grouped_layers TO sys_admin;