Show
Ignore:
Timestamp:
09/17/05 16:29:43 (19 years ago)
Author:
jerome
Message:

Upgraded database schema.
Added -i | --ingroups command line option to repykota.
Added -C | --comment command line option to edpykota.
Added 'noquota', 'noprint', and 'nochange' as switches for edpykota's
-l | --limitby command line option.
Severity : entirely new features, in need of testers :-)

Location:
pykota/trunk/initscripts
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/ldap/pykota.schema

    r2318 r2452  
    244244        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) 
    245245 
    246 # pykotaTemporaryDenied 
    247 attributetype ( 1.3.6.1.4.1.16868.1.1.36 NAME 'pykotaTemporaryDenied' 
    248         DESC 'Indicates if the user is temporarily denied to print' 
    249         SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE ) 
    250  
    251246# pykotaPassThrough 
    252 attributetype ( 1.3.6.1.4.1.16868.1.1.37 NAME 'pykotaPassThrough' 
     247attributetype ( 1.3.6.1.4.1.16868.1.1.36 NAME 'pykotaPassThrough' 
    253248        DESC 'Indicates if the printer is in pass through mode' 
    254249        SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE ) 
     
    280275        DESC 'PyKota User Quota on a Printer' 
    281276        MUST ( cn $ pykotaUserName $ pykotaPrinterName ) 
    282         MAY  ( pykotaMaxJobSize $ pykotaTemporaryDenied $ pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit $ pykotaWarnCount ) ) 
     277        MAY  ( pykotaMaxJobSize $ pykotaPageCounter $ pykotaLifePageCounter $ pykotaSoftLimit $ pykotaHardLimit $ pykotaDateLimit $ pykotaWarnCount ) ) 
    283278         
    284279# pykotaGroupPQuota         
  • pykota/trunk/initscripts/postgresql/pykota-postgresql.sql

    r2342 r2452  
    8787                        datelimit TIMESTAMP, 
    8888                        maxjobsize INT4, 
    89                         temporarydenied BOOLEAN DEFAULT 'f', 
    9089                        warncount INT4 DEFAULT 0);  
    9190CREATE INDEX userpquota_u_id_ix ON userpquota (userid); 
     
    155154                       userid INT4 REFERENCES users(id), 
    156155                       amount FLOAT, 
     156                       description TEXT, 
    157157                       date TIMESTAMP DEFAULT now()); 
    158158CREATE INDEX payments_date_ix ON payments (date); 
  • pykota/trunk/initscripts/postgresql/README.postgresql

    r2303 r2452  
    5757  database schema are included. You may have to run all 
    5858  of them or only some of them, depending on your  
    59   version of PyKota. 
     59  version of PyKota. Usually running them several times, for 
     60  example if you used several different development versions 
     61  of PyKota, won't do any harm. 
    6062   
     63  * An SQL script to upgrade a 1.22 PyKota Storage DataBase to 
     64    1.23 is included. Launch it this way on the Quota Storage Server : 
     65     
     66        $ psql -U postgres pykota 
     67        pykota=# \i upgrade-to-1.23.sql 
     68        pykota=# \q 
     69        $ 
     70         
     71    This script adds many fields to existing tables, and a table to 
     72    manage billing codes. 
     73     
    6174  * An SQL script to upgrade a 1.20 PyKota Storage DataBase to 
    6275    1.21 is included. Launch it this way on the Quota Storage Server : 
  • pykota/trunk/initscripts/postgresql/upgrade-to-1.23.sql

    r2342 r2452  
    2222-- 
    2323-- This script has to be used if you already 
    24 -- have a pre-1.23alpha12 version of PyKota to upgrade 
     24-- have a pre-1.23alpha30 version of PyKota to upgrade 
    2525-- your database schema.  
    2626-- 
     
    3434ALTER TABLE groups ADD COLUMN description TEXT; 
    3535ALTER TABLE userpquota ADD COLUMN maxjobsize INT4; 
    36 ALTER TABLE userpquota ADD COLUMN temporarydenied BOOLEAN; 
    37 ALTER TABLE userpquota ALTER COLUMN temporarydenied SET DEFAULT 'f'; 
    3836ALTER TABLE grouppquota ADD COLUMN maxjobsize INT4; 
    3937ALTER TABLE printers ADD COLUMN maxjobsize INT4; 
     
    4240ALTER TABLE jobhistory ADD COLUMN precomputedjobsize INT4; 
    4341ALTER TABLE jobhistory ADD COLUMN precomputedjobprice FLOAT; 
     42ALTER TABLE payments ADD COLUMN description TEXT; 
     43 
     44ALTER TABLE userpquota DROP COLUMN temporarydenied; 
    4445 
    4546-- 
     
    4748-- 
    4849-- Just to be sure 
    49 UPDATE userpquota SET temporarydenied='f'; 
    5050UPDATE printers SET passthrough='f'; 
    5151