Changeset 849 for pykota/trunk/initscripts/pykota-postgresql.sql
- Timestamp:
- 03/12/03 20:06:08 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/pykota-postgresql.sql
r812 r849 14 14 -- 15 15 -- $Log$ 16 -- Revision 1.5 2003/03/12 19:06:08 jalet 17 -- Initial support for groups added. 18 -- 16 19 -- Revision 1.4 2003/02/27 08:40:14 jalet 17 20 -- DATETIME is not supported anymore in PostgreSQL 7.3 it seems, but … … 91 94 groupid INT4 REFERENCES groups(id), 92 95 printerid INT4 REFERENCES printers(id), 93 lifepagecounter INT4 DEFAULT 0,94 pagecounter INT4 DEFAULT 0,95 96 softlimit INT4, 96 97 hardlimit INT4, 97 98 datelimit TIMESTAMP); 98 99 100 -- 101 -- Create the groups/members relationship 102 -- 103 CREATE TABLE groupsmembers(groupid INT4 REFERENCES groups(id), 104 userid INT4 REFERENCES users(id), 105 PRIMARY KEY (groupid, userid)); 106 99 107 -- 100 108 -- Set some ACLs 101 109 -- 102 REVOKE ALL ON users, groups, printers, userpquota, grouppquota FROM public;103 GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON users, groups, printers, userpquota, grouppquota TO pykotaadmin;110 REVOKE ALL ON users, groups, printers, userpquota, grouppquota, groupsmembers FROM public; 111 GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON users, groups, printers, userpquota, grouppquota, groupsmembers TO pykotaadmin; 104 112 GRANT SELECT, UPDATE ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq TO pykotaadmin; 105 113 GRANT SELECT, UPDATE ON printers, userpquota, grouppquota TO pykotauser; 106 GRANT SELECT ON users, groups TO pykotauser;114 GRANT SELECT ON users, groups, groupsmembers TO pykotauser; 107 115