From: Philipp Kern Date: Thu, 21 Jul 2011 09:47:38 +0000 (+0200) Subject: old-migrations/add_builder_to_pkg_history.sql: add missing GRANT statements X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=4c21915fe2aad445e51ff4f3c827bd325bab7cbc old-migrations/add_builder_to_pkg_history.sql: add missing GRANT statements --- diff --git a/schema/old-migrations/add_builder_to_pkg_history.sql b/schema/old-migrations/add_builder_to_pkg_history.sql index 9525890..7dfe814 100644 --- a/schema/old-migrations/add_builder_to_pkg_history.sql +++ b/schema/old-migrations/add_builder_to_pkg_history.sql @@ -14,6 +14,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'alpha'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "amd64", public; DROP VIEW pkg_history; @@ -29,6 +33,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'amd64'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "arm", public; DROP VIEW pkg_history; @@ -44,6 +52,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'arm'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "armel", public; DROP VIEW pkg_history; @@ -59,6 +71,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'armel'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "hppa", public; DROP VIEW pkg_history; @@ -74,6 +90,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'hppa'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "hurd-i386", public; DROP VIEW pkg_history; @@ -89,6 +109,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'hurd-i386'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "i386", public; DROP VIEW pkg_history; @@ -104,6 +128,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'i386'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "ia64", public; DROP VIEW pkg_history; @@ -119,6 +147,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'ia64'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "kfreebsd-amd64", public; DROP VIEW pkg_history; @@ -134,6 +166,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'kfreebsd-amd64'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "kfreebsd-i386", public; DROP VIEW pkg_history; @@ -149,6 +185,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'kfreebsd-i386'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "mips", public; DROP VIEW pkg_history; @@ -164,6 +204,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'mips'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "mipsel", public; DROP VIEW pkg_history; @@ -179,6 +223,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'mipsel'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "powerpc", public; DROP VIEW pkg_history; @@ -194,6 +242,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'powerpc'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "s390", public; DROP VIEW pkg_history; @@ -209,6 +261,10 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 's390'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; + SET search_path = "sparc", public; DROP VIEW pkg_history; @@ -224,3 +280,7 @@ CREATE RULE pkg_history_insert AS ON INSERT TO pkg_history DO INSTEAD INSERT INT CREATE RULE pkg_history_update AS ON UPDATE TO pkg_history DO INSTEAD UPDATE public.pkg_history p SET result = new.result, build_time = new.build_time, disk_space = new.disk_space, builder = new.builder WHERE ((((((p.architecture)::text = 'sparc'::text) AND ((p.package)::text = (old.package)::text)) AND ((p.distribution)::text = (old.distribution)::text)) AND (p.version OPERATOR(public.=) old.version)) AND (p."timestamp" = old."timestamp")); +GRANT ALL ON TABLE pkg_history TO wbadm; +GRANT SELECT ON TABLE pkg_history TO wb_security; +GRANT SELECT,INSERT,UPDATE ON TABLE pkg_history TO wb_all; +