Show
Ignore:
Timestamp:
02/13/05 23:02:29 (20 years ago)
Author:
jalet
Message:

Big database structure changes. Upgrade script is now included as well as
the new LDAP schema.
Introduction of the -o | --overcharge command line option to edpykota.
The output of repykota is more complete, but doesn't fit in 80 columns anymore.
Introduction of the new 'maxdenybanners' directive.

Location:
pykota/trunk/initscripts
Files:
3 modified

Legend:

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

    r2028 r2054  
    187187        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) 
    188188         
    189 # pykotaUserCoefficient 
    190 attributetype ( 1.3.6.1.4.1.16868.1.1.27 NAME 'pykotaUserCoefficient' 
    191         DESC 'Coefficient for a particular user, float' 
     189# pykotaOverCharge 
     190attributetype ( 1.3.6.1.4.1.16868.1.1.27 NAME 'pykotaOverCharge' 
     191        DESC 'OverCharging factor for a particular user, float' 
    192192        EQUALITY caseIgnoreIA5Match 
    193193        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) 
     
    270270objectclass ( 1.3.6.1.4.1.16868.1.2.7 NAME 'pykotaAccountBalance' SUP top AUXILIARY 
    271271        DESC 'PyKota User account balance' 
    272         MAY  ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid $ pykotaUserCoefficient $ pykotaPayments ) ) 
     272        MAY  ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid $ pykotaOverCharge $ pykotaPayments ) ) 
    273273         
    274274# pykotaLastJob         
  • pykota/trunk/initscripts/postgresql/pykota-postgresql.sql

    r2037 r2054  
    2020-- 
    2121-- $Log$ 
     22-- Revision 1.16  2005/02/13 22:02:29  jalet 
     23-- Big database structure changes. Upgrade script is now included as well as 
     24-- the new LDAP schema. 
     25-- Introduction of the -o | --overcharge command line option to edpykota. 
     26-- The output of repykota is more complete, but doesn't fit in 80 columns anymore. 
     27-- Introduction of the new 'maxdenybanners' directive. 
     28-- 
    2229-- Revision 1.15  2005/01/23 10:58:22  jalet 
    2330-- Added a few indexes for the database 
     
    106113                   lifetimepaid FLOAT DEFAULT 0.0, 
    107114                   limitby TEXT DEFAULT 'quota', 
    108                    coefficient FLOAT NOT NULL DEFAULT 1.0); 
     115                   overcharge FLOAT NOT NULL DEFAULT 1.0); 
    109116                    
    110117-- 
     
    135142                        hardlimit INT4, 
    136143                        datelimit TIMESTAMP, 
    137                         warned INT4 DEFAULT 0); -- not a boolean, will help stats 
     144                        warncount INT4 DEFAULT 0);  
    138145CREATE INDEX userpquota_u_id_ix ON userpquota (userid); 
    139146CREATE INDEX userpquota_p_id_ix ON userpquota (printerid); 
     
    176183                         hardlimit INT4, 
    177184                         datelimit TIMESTAMP); 
     185CREATE INDEX grouppquota_g_id_ix ON grouppquota (groupid); 
     186CREATE INDEX grouppquota_p_id_ix ON grouppquota (printerid); 
    178187CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 
    179188                         
     
    206215                           printerid INTEGER NOT NULL REFERENCES printers(id),  
    207216                           label TEXT NOT NULL,  
    208                            coefficient FLOAT NOT NULL DEFAULT 1.0,  
     217                           coefficient FLOAT DEFAULT 1.0,  
    209218                           CONSTRAINT coeffconstraint UNIQUE (printerid, label)); 
    210219 
     
    212221-- Set some ACLs                         
    213222-- 
    214 REVOKE ALL ON users, groups, printers, userpquota, grouppquota, groupsmembers, printergroupsmembers, jobhistory, payments FROM public;                         
    215 REVOKE ALL ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq, jobhistory_id_seq, payments_id_seq FROM public; 
     223REVOKE ALL ON users, groups, printers, userpquota, grouppquota, groupsmembers, printergroupsmembers, jobhistory, payments, coefficients FROM public;                         
     224REVOKE ALL ON users_id_seq, groups_id_seq, printers_id_seq, userpquota_id_seq, grouppquota_id_seq, jobhistory_id_seq, payments_id_seq, coefficients_id_seq FROM public; 
    216225 
    217226GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON users, groups, printers, userpquota, grouppquota, groupsmembers, printergroupsmembers, jobhistory, payments, coefficients TO pykotaadmin; 
  • pykota/trunk/initscripts/postgresql/README.postgresql

    r2028 r2054  
    5959  version of PyKota. 
    6060   
     61  * An SQL script to upgrade a 1.20 PyKota Storage DataBase to 
     62    1.21 is included. Launch it this way on the Quota Storage Server : 
     63     
     64        $ psql -U postgres pykota 
     65        pykota=# \i upgrade-to-1.21.sql 
     66        pykota=# \q 
     67        $ 
     68         
     69    This script adds many fields to existing tables, and also adds 
     70    some tables in indexes. 
     71     
    6172  * An SQL script to upgrade a 1.18 PyKota Storage DataBase to 
    6273    1.19 is included. Launch it this way on the Quota Storage Server :