Changeset 2054 for pykota/trunk/initscripts
- Timestamp:
- 02/13/05 23:02:29 (20 years ago)
- Location:
- pykota/trunk/initscripts
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/ldap/pykota.schema
r2028 r2054 187 187 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) 188 188 189 # pykota UserCoefficient190 attributetype ( 1.3.6.1.4.1.16868.1.1.27 NAME 'pykota UserCoefficient'191 DESC ' Coefficientfor a particular user, float'189 # pykotaOverCharge 190 attributetype ( 1.3.6.1.4.1.16868.1.1.27 NAME 'pykotaOverCharge' 191 DESC 'OverCharging factor for a particular user, float' 192 192 EQUALITY caseIgnoreIA5Match 193 193 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) … … 270 270 objectclass ( 1.3.6.1.4.1.16868.1.2.7 NAME 'pykotaAccountBalance' SUP top AUXILIARY 271 271 DESC 'PyKota User account balance' 272 MAY ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid $ pykota UserCoefficient$ pykotaPayments ) )272 MAY ( pykotaUserName $ pykotaBalance $ pykotaLifeTimePaid $ pykotaOverCharge $ pykotaPayments ) ) 273 273 274 274 # pykotaLastJob -
pykota/trunk/initscripts/postgresql/pykota-postgresql.sql
r2037 r2054 20 20 -- 21 21 -- $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 -- 22 29 -- Revision 1.15 2005/01/23 10:58:22 jalet 23 30 -- Added a few indexes for the database … … 106 113 lifetimepaid FLOAT DEFAULT 0.0, 107 114 limitby TEXT DEFAULT 'quota', 108 coefficientFLOAT NOT NULL DEFAULT 1.0);115 overcharge FLOAT NOT NULL DEFAULT 1.0); 109 116 110 117 -- … … 135 142 hardlimit INT4, 136 143 datelimit TIMESTAMP, 137 warn ed INT4 DEFAULT 0); -- not a boolean, will help stats144 warncount INT4 DEFAULT 0); 138 145 CREATE INDEX userpquota_u_id_ix ON userpquota (userid); 139 146 CREATE INDEX userpquota_p_id_ix ON userpquota (printerid); … … 176 183 hardlimit INT4, 177 184 datelimit TIMESTAMP); 185 CREATE INDEX grouppquota_g_id_ix ON grouppquota (groupid); 186 CREATE INDEX grouppquota_p_id_ix ON grouppquota (printerid); 178 187 CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 179 188 … … 206 215 printerid INTEGER NOT NULL REFERENCES printers(id), 207 216 label TEXT NOT NULL, 208 coefficient FLOAT NOT NULLDEFAULT 1.0,217 coefficient FLOAT DEFAULT 1.0, 209 218 CONSTRAINT coeffconstraint UNIQUE (printerid, label)); 210 219 … … 212 221 -- Set some ACLs 213 222 -- 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;223 REVOKE ALL ON users, groups, printers, userpquota, grouppquota, groupsmembers, printergroupsmembers, jobhistory, payments, coefficients FROM public; 224 REVOKE 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; 216 225 217 226 GRANT 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 59 59 version of PyKota. 60 60 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 61 72 * An SQL script to upgrade a 1.18 PyKota Storage DataBase to 62 73 1.19 is included. Launch it this way on the Quota Storage Server :