From: Eric Bollengier Date: Sat, 10 Nov 2007 13:18:24 +0000 (+0000) Subject: ebl remove user managment X-Git-Tag: Release-2.2.6~2^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0850a54e5d49d85449838dbd9094042c8761768;p=bacula%2Fbacula ebl remove user managment git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5889 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/script/upgrade-2.2_3.0_postgresql.sql b/gui/bweb/script/upgrade-2.2_3.0_postgresql.sql deleted file mode 100644 index f9eccb752f..0000000000 --- a/gui/bweb/script/upgrade-2.2_3.0_postgresql.sql +++ /dev/null @@ -1,70 +0,0 @@ --- -------------------------------------------------- --- Upgrade from 2.2 --- -------------------------------------------------- - -CREATE FUNCTION concat (text, text) RETURNS text AS ' -DECLARE -result text; -BEGIN -IF $1 is not null THEN -result := $1 || $2; -END IF; - -RETURN result; -END; -' LANGUAGE plpgsql; - -CREATE AGGREGATE group_concat( -sfunc = concat, -basetype = text, -stype = text, -initcond = '' -); - -BEGIN; -CREATE TABLE bweb_user -( - userid serial not null, - username text not null, - use_acl boolean default false, - comment text default '', - passwd text default '', - primary key (userid) -); -CREATE UNIQUE INDEX bweb_user_idx on bweb_user (username); - -CREATE TABLE bweb_role -( - roleid serial not null, - rolename text not null, --- comment text default '', - primary key (roleid) -); -CREATE UNIQUE INDEX bweb_role_idx on bweb_role (rolename); - -INSERT INTO bweb_role (rolename) VALUES ('r_user_mgnt'); -INSERT INTO bweb_role (rolename) VALUES ('r_delete_job'); -INSERT INTO bweb_role (rolename) VALUES ('r_prune'); -INSERT INTO bweb_role (rolename) VALUES ('r_purge'); -INSERT INTO bweb_role (rolename) VALUES ('r_group_mgnt'); -INSERT INTO bweb_role (rolename) VALUES ('r_location_mgnt'); -INSERT INTO bweb_role (rolename) VALUES ('r_cancel_job'); -INSERT INTO bweb_role (rolename) VALUES ('r_run_job'); -INSERT INTO bweb_role (rolename) VALUES ('r_configure'); -INSERT INTO bweb_role (rolename) VALUES ('r_client_status'); -INSERT INTO bweb_role (rolename) VALUES ('r_view_job'); - -CREATE TABLE bweb_role_member -( - roleid integer not null, - userid integer not null, - primary key (roleid, userid) -); - -CREATE TABLE bweb_client_group_acl -( - client_group_id integer not null, - userid integer not null, - primary key (client_group_id, userid) -); -COMMIT;