]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/grant_postgresql_privileges.sql
Update the Microsoft Visual Studio build to match the MinGW32 build.
[bacula/bacula] / bacula / src / win32 / cats / grant_postgresql_privileges.sql
1 create user ${USER};\r
2 \r
3 -- for tables\r
4 grant all on unsavedfiles to ${USER};\r
5 grant all on basefiles    to ${USER};\r
6 grant all on jobmedia     to ${USER};\r
7 grant all on file         to ${USER};\r
8 grant all on job          to ${USER};\r
9 grant all on media        to ${USER};\r
10 grant all on client       to ${USER};\r
11 grant all on pool         to ${USER};\r
12 grant all on fileset      to ${USER};\r
13 grant all on path         to ${USER};\r
14 grant all on filename     to ${USER};\r
15 grant all on counters     to ${USER};\r
16 grant all on version      to ${USER};\r
17 grant all on cdimages     to ${USER};\r
18 grant all on mediatype    to ${USER};\r
19 grant all on storage      to ${USER};\r
20 grant all on device       to ${USER};\r
21 grant all on status       to ${USER};\r
22 \r
23 -- for sequences on those tables\r
24 \r
25 grant select, update on filename_filenameid_seq    to ${USER};\r
26 grant select, update on path_pathid_seq            to ${USER};\r
27 grant select, update on fileset_filesetid_seq      to ${USER};\r
28 grant select, update on pool_poolid_seq            to ${USER};\r
29 grant select, update on client_clientid_seq        to ${USER};\r
30 grant select, update on media_mediaid_seq          to ${USER};\r
31 grant select, update on job_jobid_seq              to ${USER};\r
32 grant select, update on file_fileid_seq            to ${USER};\r
33 grant select, update on jobmedia_jobmediaid_seq    to ${USER};\r
34 grant select, update on basefiles_baseid_seq       to ${USER};\r
35 grant select, update on storage_storageid_seq      to ${USER};\r
36 grant select, update on mediatype_mediatypeid_seq  to ${USER};\r
37 grant select, update on device_deviceid_seq        to ${USER};\r