Changeset 1200 for pykota/trunk/initscripts/postgresql
- Timestamp:
- 11/21/03 15:28:46 (21 years ago)
- Location:
- pykota/trunk/initscripts/postgresql
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/postgresql/pykota-postgresql.sql
r1087 r1200 20 20 -- 21 21 -- $Log$ 22 -- Revision 1.5 2003/11/21 14:28:45 jalet 23 -- More complete job history. 24 -- 22 25 -- Revision 1.4 2003/07/16 21:53:07 jalet 23 26 -- Really big modifications wrt new configuration file's location and content. … … 97 100 hardlimit INT4, 98 101 datelimit TIMESTAMP); 102 CREATE UNIQUE INDEX userpquota_up_id_ix ON userpquota (userid, printerid); 99 103 100 104 -- … … 108 112 jobsize INT4, 109 113 action TEXT, 114 filename TEXT, 115 title TEXT, 116 copies INT4, 117 options TEXT, 110 118 jobdate TIMESTAMP DEFAULT now()); 119 CREATE INDEX jobhistory_p_id_ix ON jobhistory (printerid); 120 CREATE INDEX jobhistory_pd_id_ix ON jobhistory (printerid, jobdate); 111 121 112 122 -- … … 119 129 hardlimit INT4, 120 130 datelimit TIMESTAMP); 131 CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 121 132 122 133 -- -
pykota/trunk/initscripts/postgresql/README.postgresql
r1079 r1200 51 51 Upgrade scripts : 52 52 53 DON'T DO ANYTHING IF THIS IS YOUR FIRST INSTALLATION 54 OF PYKOTA. 55 53 56 Some scripts to upgrade old PyKota databases to the new 54 57 database schema are included. You may have to run all … … 56 59 version of PyKota. 57 60 61 * An SQL script to upgrade a pre-1.16 PyKota Storage DataBase to 62 1.16 is included. Launch it this way on the Quota Storage Server : 63 64 $ psql -U postgres pykota 65 pykota=# \i upgrade-to-1.16.sql 66 pykota=# \q 67 $ 68 69 This script adds some fields to the print job history, so that 70 more complete information will be known. The fields that 71 are added are : filename, title, copies and print command options. 72 Also some indexes are created to speed things up. 58 73 74 What is below is for historical reasons only, real people don't use 75 such old beasts, and YOU SHOULDN'T EITHER ! 76 59 77 * An SQL script to upgrade a pre-1.14 PyKota Storage DataBase to 60 78 1.14 is included. Launch it this way on the Quota Storage Server : … … 69 87 messages in case he is over quota. 70 88 71 What is below is for historical reasons only, real people don't use72 such old beasts, and YOU SHOULDN'T EITHER !73 74 89 * An sql script to upgrade a pre-1.01 PyKota Quota Storage DataBase to 75 90 1.01 is still included for historical reasons. PLEASE DON'T USE IT !