Changeset 896 for pykota/trunk

Show
Ignore:
Timestamp:
04/09/03 22:09:34 (22 years ago)
Author:
jalet
Message:

New table to keep job history

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/pykota-postgresql.sql

    r887 r896  
    2020-- 
    2121-- $Log$ 
     22-- Revision 1.8  2003/04/09 20:09:34  jalet 
     23-- New table to keep job history 
     24-- 
    2225-- Revision 1.7  2003/04/08 20:38:08  jalet 
    2326-- The last job Id is saved now for each printer, this will probably 
     
    105108                         
    106109-- 
     110-- Create the job history table for u 
     111-- 
     112CREATE TABLE jobhistory(id SERIAL PRIMARY KEY NOT NULL, 
     113                        jobid TEXT, 
     114                        userid INT4 REFERENCES users(id), 
     115                        printerid INT4 REFERENCES printers(id), 
     116                        jobsize INT4, 
     117                        jobdate TIMESTAMP DEFAULT now()); 
     118                         
     119-- 
    107120-- Create the print quota table for groups 
    108121-- 
     
    124137-- Set some ACLs                         
    125138-- 
    126 REVOKE ALL ON users, groups, printers, userpquota, grouppquota, groupsmembers FROM public;                         
    127 GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON users, groups, printers, userpquota, grouppquota, groupsmembers TO pykotaadmin; 
    128 GRANT SELECT, UPDATE ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq TO pykotaadmin; 
     139REVOKE ALL ON users, groups, printers, userpquota, grouppquota, groupsmembers, jobhistory FROM public;                         
     140GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON users, groups, printers, userpquota, grouppquota, groupsmembers, jobhistory TO pykotaadmin; 
     141GRANT SELECT, UPDATE ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq, jobhistory_id_seq TO pykotaadmin; 
    129142GRANT SELECT, UPDATE ON printers, userpquota, grouppquota TO pykotauser; 
    130 GRANT SELECT ON users, groups, groupsmembers TO pykotauser; 
     143GRANT SELECT ON users, groups, groupsmembers, jobhistory TO pykotauser; 
    131144