Show
Ignore:
Timestamp:
11/21/03 15:28:46 (21 years ago)
Author:
jalet
Message:

More complete job history.

Location:
pykota/trunk/initscripts/postgresql
Files:
2 modified

Legend:

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

    r1087 r1200  
    2020-- 
    2121-- $Log$ 
     22-- Revision 1.5  2003/11/21 14:28:45  jalet 
     23-- More complete job history. 
     24-- 
    2225-- Revision 1.4  2003/07/16 21:53:07  jalet 
    2326-- Really big modifications wrt new configuration file's location and content. 
     
    97100                        hardlimit INT4, 
    98101                        datelimit TIMESTAMP); 
     102CREATE UNIQUE INDEX userpquota_up_id_ix ON userpquota (userid, printerid); 
    99103                         
    100104-- 
     
    108112                        jobsize INT4, 
    109113                        action TEXT, 
     114                        filename TEXT, 
     115                        title TEXT, 
     116                        copies INT4, 
     117                        options TEXT, 
    110118                        jobdate TIMESTAMP DEFAULT now()); 
     119CREATE INDEX jobhistory_p_id_ix ON jobhistory (printerid); 
     120CREATE INDEX jobhistory_pd_id_ix ON jobhistory (printerid, jobdate); 
    111121                         
    112122-- 
     
    119129                         hardlimit INT4, 
    120130                         datelimit TIMESTAMP); 
     131CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 
    121132                         
    122133--                          
  • pykota/trunk/initscripts/postgresql/README.postgresql

    r1079 r1200  
    5151Upgrade scripts : 
    5252 
     53  DON'T DO ANYTHING IF THIS IS YOUR FIRST INSTALLATION 
     54  OF PYKOTA. 
     55 
    5356  Some scripts to upgrade old PyKota databases to the new 
    5457  database schema are included. You may have to run all 
     
    5659  version of PyKota. 
    5760   
     61  * An SQL script to upgrade a pre-1.16 PyKota Storage DataBase to 
     62    1.16 is included. Launch it this way on the Quota Storage Server : 
     63     
     64        $ psql -U postgres pykota 
     65        pykota=# \i upgrade-to-1.16.sql 
     66        pykota=# \q 
     67        $ 
     68         
     69    This script adds some fields to the print job history, so that 
     70    more complete information will be known. The fields that 
     71    are added are : filename, title, copies and print command options. 
     72    Also some indexes are created to speed things up. 
    5873   
     74What is below is for historical reasons only, real people don't use   
     75such old beasts, and YOU SHOULDN'T EITHER ! 
     76 
    5977  * An SQL script to upgrade a pre-1.14 PyKota Storage DataBase to 
    6078    1.14 is included. Launch it this way on the Quota Storage Server : 
     
    6987    messages in case he is over quota. 
    7088     
    71 What is below is for historical reasons only, real people don't use   
    72 such old beasts, and YOU SHOULDN'T EITHER ! 
    73  
    7489  * An sql script to upgrade a pre-1.01 PyKota Quota Storage DataBase to  
    7590    1.01 is still included for historical reasons. PLEASE DON'T USE IT !