root / pykota / trunk / initscripts / README.postgresql @ 922

Revision 900, 3.5 kB (checked in by jalet, 22 years ago)

Job history added. Upgrade script neutralized for now !

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# $Id$
2
3PyKota - Print Quota for CUPS
4
5(c) 2003 Jerome Alet <alet@librelogiciel.com>
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19
20============================================================
21
22Documentation for the pykota-postgresql.sql script :
23----------------------------------------------------
24
25This script is to be used to create an empty Quota Storage
26DataBase using PostgreSQL as a backend.
27
28If you have already installed PyKota, and have datas in your
29Quota Storage DataBase, you may prefer to skip this section
30and read the next one.
31
32        - Launch the psql frontend and connect to the
33          database template1 as a PostgreSQL administrator
34          (i.e. the postgres user) :
35         
36            $ psql -h localhost -U postgres template1
37         
38        - Executes the pykota-postgresql.sql script : 
39       
40            template1=# \i pykota-postgresql.sql
41           
42        - Quit the psql frontend :   
43       
44            template1=# \q
45           
46        - Your PostgreSQL PyKota storage is now ready
47          for use.
48       
49============================================================
50
51Upgrade scripts :
52
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 :
62 
63        - Launch the psql frontend and connect to the
64          database pykota as a PostgreSQL administrator
65          (i.e. the postgres user) :
66         
67            $ psql -h localhost -U postgres pykota
68         
69        - Executes the pykota-upgrade-postgresql.sql script : 
70       
71            pykota=# \i pykota-upgrade-postgresql.sql
72           
73        - Quit the psql frontend :   
74       
75            pykota=# \q
76           
77        - Your PostgreSQL PyKota storage is now ready
78          for use.
79 
80  If you already run PyKota v1.01 or above, you don't need
81  to run this upgrade script.
82 
83  WARNING : 
84
85  This script requires a recent version of PostgreSQL to run
86  successfully, because it requires the ALTER TABLE DROP COLUMN
87  syntax to be supported. However in case you've got an older
88  version, upgrading PostgreSQL is not mandatory, you will just
89  have two unused fields in the grouppquota table, these
90  fields are pagecounter and lifepagecounter, just forgot them.
91 
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 existing version of PyKota is
96  already 1.03 or higher.
Note: See TracBrowser for help on using the browser.