From: Eric Bollengier Date: Sat, 24 Nov 2007 11:42:42 +0000 (+0000) Subject: ebl Add a tpl field to bweb_user. (To be able to have a tpl for each X-Git-Tag: Release-3.0.0~2210 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81be2ca2426e2f2075ff3e449f0f141627494e3b;p=bacula%2Fbacula ebl Add a tpl field to bweb_user. (To be able to have a tpl for each user). git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5975 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/script/bweb-mysql.sql b/gui/bweb/script/bweb-mysql.sql index 601d569c48..2e21aaf82c 100644 --- a/gui/bweb/script/bweb-mysql.sql +++ b/gui/bweb/script/bweb-mysql.sql @@ -35,22 +35,23 @@ CREATE INDEX brestore_pathvisibility_jobid CREATE TABLE bweb_user ( - userid serial not null, - username text not null, - use_acl boolean default false, - enabled boolean default true, + userid serial not null, + username text not null, + use_acl boolean default false, + enabled boolean default true, comment text default '', - passwd text default '', - primary key (userid) + passwd text default '', + tpl text default '', + primary key (userid) ); CREATE UNIQUE INDEX bweb_user_idx on bweb_user (username(255)); CREATE TABLE bweb_role ( - roleid serial not null, - rolename text not null, --- comment text default '', - primary key (roleid) + roleid serial not null, + rolename text not null, +-- comment text default '', + primary key (roleid) ); CREATE UNIQUE INDEX bweb_role_idx on bweb_role (rolename(255)); INSERT INTO bweb_role (rolename) VALUES ('r_user_mgnt'); @@ -75,16 +76,16 @@ INSERT INTO bweb_role (rolename) VALUES ('r_client_status'); CREATE TABLE bweb_role_member ( - roleid integer not null, - userid integer not null, - primary key (roleid, userid) + 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) + client_group_id integer not null, + userid integer not null, + primary key (client_group_id, userid) ); @@ -97,8 +98,8 @@ CREATE TABLE bweb_client_group_acl CREATE TABLE client_group ( - client_group_id serial not null, - client_group_name text not null, + client_group_id serial not null, + client_group_name text not null, primary key (client_group_id) ); @@ -106,7 +107,7 @@ CREATE UNIQUE INDEX client_group_idx on client_group (client_group_name(255)); CREATE TABLE client_group_member ( - client_group_id integer not null, + client_group_id integer not null, clientid integer not null, primary key (client_group_id, clientid) ); diff --git a/gui/bweb/script/bweb-postgresql.sql b/gui/bweb/script/bweb-postgresql.sql index 7bab62c00b..b02acb5598 100644 --- a/gui/bweb/script/bweb-postgresql.sql +++ b/gui/bweb/script/bweb-postgresql.sql @@ -59,22 +59,23 @@ initcond = '' BEGIN; CREATE TABLE bweb_user ( - userid serial not null, - username text not null, - use_acl boolean default false, - enabled boolean default true, + userid serial not null, + username text not null, + use_acl boolean default false, + enabled boolean default true, comment text default '', - passwd text default '', - primary key (userid) + passwd text default '', + tpl 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) + roleid serial not null, + rolename text not null, +-- comment text default '', + primary key (roleid) ); CREATE UNIQUE INDEX bweb_role_idx on bweb_role (rolename); @@ -100,16 +101,16 @@ INSERT INTO bweb_role (rolename) VALUES ('r_client_status'); CREATE TABLE bweb_role_member ( - roleid integer not null, - userid integer not null, - primary key (roleid, userid) + 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) + client_group_id integer not null, + userid integer not null, + primary key (client_group_id, userid) ); COMMIT; -- -------------------------------------------------- @@ -122,8 +123,8 @@ BEGIN; CREATE TABLE client_group ( - client_group_id serial not null, - client_group_name text not null, + client_group_id serial not null, + client_group_name text not null, primary key (client_group_id) ); @@ -131,7 +132,7 @@ CREATE UNIQUE INDEX client_group_idx on client_group (client_group_name); CREATE TABLE client_group_member ( - client_group_id integer not null, + client_group_id integer not null, clientid integer not null, primary key (client_group_id, clientid) ); diff --git a/gui/bweb/technotes-2.3 b/gui/bweb/technotes-2.3 index 67602de8aa..a903fa724c 100644 --- a/gui/bweb/technotes-2.3 +++ b/gui/bweb/technotes-2.3 @@ -1,6 +1,8 @@ 24Nov07 ebl Add a wiki option to integrate a link to jobs documentation directly in bweb. +ebl Add a tpl field to bweb_user. (To be able to have a tpl for each + user). 23Nov07 ebl Add brestore_xxx tables to sql scripts