Changeset 887 for pykota/trunk/initscripts
- Timestamp:
- 04/08/03 22:38:08 (21 years ago)
- Location:
- pykota/trunk/initscripts
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/pykota-postgresql.sql
r873 r887 20 20 -- 21 21 -- $Log$ 22 -- Revision 1.7 2003/04/08 20:38:08 jalet 23 -- The last job Id is saved now for each printer, this will probably 24 -- allow other accounting methods in the future. 25 -- 22 26 -- Revision 1.6 2003/03/29 13:45:27 jalet 23 27 -- GPL paragraphs were incorrectly (from memory) copied into the sources. … … 84 88 CREATE TABLE printers(id SERIAL PRIMARY KEY NOT NULL, 85 89 printername TEXT UNIQUE NOT NULL, 90 lastjobid TEXT, 86 91 lastusername TEXT, 87 92 pagecounter INT4 DEFAULT 0); -
pykota/trunk/initscripts/README
r873 r887 22 22 This directory contains scripts to initialise the PyKota 23 23 storage database. Use the one which best suits your need 24 depending on the storage backend you want to use. Each 25 script has an associated README file, be sure to read 26 this as well : 24 depending on the storage backend you want to use. 27 25 28 File Backend 29 -------------------------------------------------- 30 pykota-posgresql.sql | PostgreSQL storage 31 pykota-upgrade-postgresql.sql | Upgrade database schema from pre 1.01 32 | 33 34 ============================================================ 26 27 Files : 28 ======= 29 30 * pykota-postgresql.sql : 31 32 This file creates an empty Quota Storage Database, using PostgreSQL 33 as a backend. You have to use it the first time you install PyKota 34 if you want to use PostgreSQL as the Quota Storage Backend. 35 36 * pykota-upgrade-postgresql.sql : 37 38 This files upgrades the PostgreSQL Quota Storage Database schema 39 from versions before 1.01 to version 1.01. 40 41 * upgrade-1.01-to-1.03.sh : 42 43 This shell script upgrades the PostgreSQL Quota Storage Database schema 44 from versions 1.01 or 1.02 to version 1.03. 45 PLEASE DO A BACKUP OF YOUR PYKOTA DATABASE BEFORE RUNNING THIS SCRIPT ! 46 Also this script will try to connect to PostgreSQL as the postgres user 47 (i.e. PostgreSQL's administrator), on the local machine (PyKota Storage 48 Server), without prompting for a password. Please read this script and 49 adapt it to your own configuration before running it. THIS IS IMPORTANT. 50 -
pykota/trunk/initscripts/README.postgresql
r880 r887 27 27 28 28 If you have already installed PyKota, and have datas in your 29 Quota Storage DataBase, you may prefer to 29 Quota Storage DataBase, you may prefer to skip this section 30 30 and read the next one. 31 31 … … 49 49 ============================================================ 50 50 51 Upgrade script :51 Upgrade scripts : 52 52 53 An sql script to upgrade a pre-1.01 PyKota Quota Storage 54 DataBase is included, if you want to keep your datas from 55 a pre-1.01 PyKota version, then please launch the following 56 commands : 53 Some scripts to upgrade old PyKota databases to the new 54 database schema are included. You may have to run all 55 of them or only some of them, depending on your 56 version of PyKota. 57 58 * An sql script to upgrade a pre-1.01 PyKota Quota Storage DataBase to 59 1.01 is included. If your PyKota version is equal or higher than 1.01 then 60 you can skip to the next section. Otherwise, if you want to keep your datas 61 from a pre-1.01 PyKota version, then please launch the following commands : 57 62 58 63 - Launch the psql frontend and connect to the … … 76 81 to run this upgrade script. 77 82 78 WARNING :83 WARNING : 79 84 80 85 This script requires a recent version of PostgreSQL to run … … 85 90 fields are pagecounter and lifepagecounter, just forgot them. 86 91 87 IMPORTANT : 88 89 Because the modifications are just about Group Print Quotas 90 and because Group Print Quotas are currently not fully 91 implemented, you can delay the launch of this upgrade 92 script until you really need Group Print Quotas. 93 In other terms, running this script is not mandatory 94 for PyKota to continue to work correctly, at least 95 until Group Print Quotas will be fully implemented. 96 92 * If you are already running PyKota 1.01 or 1.02 and want to upgrade to 93 1.03, YOU HAVE TO RUN the upgrade-1.01-to-1.03.sh shell script. 94 NOT LAUNCHING THIS SCRIPT WILL CAUSE PYKOTA TO STOP WORKING ! 95 Please don't run this script if your version of PyKota is already 96 1.03 or higher.