Show
Ignore:
Timestamp:
02/13/05 23:02:29 (19 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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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;