Show
Ignore:
Timestamp:
04/10/03 23:47:20 (22 years ago)
Author:
jalet
Message:

Job history added. Upgrade script neutralized for now !

Files:
1 modified

Legend:

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

    r897 r900  
    2020-- 
    2121-- $Log$ 
     22-- Revision 1.10  2003/04/10 21:47:20  jalet 
     23-- Job history added. Upgrade script neutralized for now ! 
     24-- 
    2225-- Revision 1.9  2003/04/09 20:11:29  jalet 
    2326-- Added a field to save the action taken for this job (Allow, Deny) 
     
    9396-- 
    9497CREATE TABLE printers(id SERIAL PRIMARY KEY NOT NULL, 
    95                       printername TEXT UNIQUE NOT NULL, 
    96                       lastjobid TEXT, 
    97                       lastusername TEXT, 
    98                       pagecounter INT4 DEFAULT 0); 
     98                      printername TEXT UNIQUE NOT NULL); 
    9999                     
    100100-- 
     
    111111                         
    112112-- 
    113 -- Create the job history table for u 
     113-- Create the job history table 
    114114-- 
    115115CREATE TABLE jobhistory(id SERIAL PRIMARY KEY NOT NULL, 
     
    117117                        userid INT4 REFERENCES users(id), 
    118118                        printerid INT4 REFERENCES printers(id), 
     119                        pagecounter INT4 DEFAULT 0, 
     120                        jobsize INT4, 
    119121                        action TEXT, 
    120                         jobsize INT4, 
    121122                        jobdate TIMESTAMP DEFAULT now()); 
    122123                         
     
    145146GRANT SELECT, UPDATE ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq, jobhistory_id_seq TO pykotaadmin; 
    146147GRANT SELECT, UPDATE ON printers, userpquota, grouppquota TO pykotauser; 
    147 GRANT SELECT ON users, groups, groupsmembers, jobhistory TO pykotauser; 
     148GRANT SELECT ON users, groups, groupsmembers TO pykotauser; 
     149GRANT SELECT, INSERT, UPDATE ON jobhistory TO pykotauser; 
     150GRANT SELECT, UPDATE ON jobhistory_id_seq TO pykotauser; 
    148151