Changeset 2452 for pykota/trunk/initscripts/postgresql
- Timestamp:
- 09/17/05 16:29:43 (19 years ago)
- Location:
- pykota/trunk/initscripts/postgresql
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/postgresql/pykota-postgresql.sql
r2342 r2452 87 87 datelimit TIMESTAMP, 88 88 maxjobsize INT4, 89 temporarydenied BOOLEAN DEFAULT 'f',90 89 warncount INT4 DEFAULT 0); 91 90 CREATE INDEX userpquota_u_id_ix ON userpquota (userid); … … 155 154 userid INT4 REFERENCES users(id), 156 155 amount FLOAT, 156 description TEXT, 157 157 date TIMESTAMP DEFAULT now()); 158 158 CREATE INDEX payments_date_ix ON payments (date); -
pykota/trunk/initscripts/postgresql/README.postgresql
r2303 r2452 57 57 database schema are included. You may have to run all 58 58 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. 60 62 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 61 74 * An SQL script to upgrade a 1.20 PyKota Storage DataBase to 62 75 1.21 is included. Launch it this way on the Quota Storage Server : -
pykota/trunk/initscripts/postgresql/upgrade-to-1.23.sql
r2342 r2452 22 22 -- 23 23 -- This script has to be used if you already 24 -- have a pre-1.23alpha 12version of PyKota to upgrade24 -- have a pre-1.23alpha30 version of PyKota to upgrade 25 25 -- your database schema. 26 26 -- … … 34 34 ALTER TABLE groups ADD COLUMN description TEXT; 35 35 ALTER TABLE userpquota ADD COLUMN maxjobsize INT4; 36 ALTER TABLE userpquota ADD COLUMN temporarydenied BOOLEAN;37 ALTER TABLE userpquota ALTER COLUMN temporarydenied SET DEFAULT 'f';38 36 ALTER TABLE grouppquota ADD COLUMN maxjobsize INT4; 39 37 ALTER TABLE printers ADD COLUMN maxjobsize INT4; … … 42 40 ALTER TABLE jobhistory ADD COLUMN precomputedjobsize INT4; 43 41 ALTER TABLE jobhistory ADD COLUMN precomputedjobprice FLOAT; 42 ALTER TABLE payments ADD COLUMN description TEXT; 43 44 ALTER TABLE userpquota DROP COLUMN temporarydenied; 44 45 45 46 -- … … 47 48 -- 48 49 -- Just to be sure 49 UPDATE userpquota SET temporarydenied='f';50 50 UPDATE printers SET passthrough='f'; 51 51