]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/script/upgrade-2.0_2.2_postgresql.sql
bweb: update location title
[bacula/bacula] / gui / bweb / script / upgrade-2.0_2.2_postgresql.sql
1 -- --------------------------------------------------
2 -- Upgrade from 2.0
3 -- --------------------------------------------------
4
5 BEGIN;
6 -- Manage Client groups in bweb
7 -- Works with postgresql and mysql5 
8
9 CREATE TABLE client_group
10 (
11     client_group_id             serial    not null,
12     client_group_name           text      not null,
13     primary key (client_group_id)
14 );
15
16 CREATE UNIQUE INDEX client_group_idx on client_group (client_group_name);
17
18 CREATE TABLE client_group_member
19 (
20     client_group_id                 integer       not null,
21     clientid          integer     not null,
22     primary key (client_group_id, clientid)
23 );
24
25 CREATE INDEX client_group_member_idx on client_group_member (client_group_id);
26
27 COMMIT;
28