Changeset 900 for pykota/trunk/initscripts/pykota-postgresql.sql
- Timestamp:
- 04/10/03 23:47:20 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/pykota-postgresql.sql
r897 r900 20 20 -- 21 21 -- $Log$ 22 -- Revision 1.10 2003/04/10 21:47:20 jalet 23 -- Job history added. Upgrade script neutralized for now ! 24 -- 22 25 -- Revision 1.9 2003/04/09 20:11:29 jalet 23 26 -- Added a field to save the action taken for this job (Allow, Deny) … … 93 96 -- 94 97 CREATE 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); 99 99 100 100 -- … … 111 111 112 112 -- 113 -- Create the job history table for u113 -- Create the job history table 114 114 -- 115 115 CREATE TABLE jobhistory(id SERIAL PRIMARY KEY NOT NULL, … … 117 117 userid INT4 REFERENCES users(id), 118 118 printerid INT4 REFERENCES printers(id), 119 pagecounter INT4 DEFAULT 0, 120 jobsize INT4, 119 121 action TEXT, 120 jobsize INT4,121 122 jobdate TIMESTAMP DEFAULT now()); 122 123 … … 145 146 GRANT SELECT, UPDATE ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq, jobhistory_id_seq TO pykotaadmin; 146 147 GRANT SELECT, UPDATE ON printers, userpquota, grouppquota TO pykotauser; 147 GRANT SELECT ON users, groups, groupsmembers, jobhistory TO pykotauser; 148 GRANT SELECT ON users, groups, groupsmembers TO pykotauser; 149 GRANT SELECT, INSERT, UPDATE ON jobhistory TO pykotauser; 150 GRANT SELECT, UPDATE ON jobhistory_id_seq TO pykotauser; 148 151