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 VERYOLDpykota-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 for the next step, i.e. upgrade the |
79 | | database schema to version 1.03. PLEASE |
80 | | TAKE ANY STEPS DESCRIBED IN THE NEXT SECTION. |
81 | | |
82 | | If you already run PyKota v1.01 or above, you don't need |
83 | | to run this upgrade script. |
84 | | |
85 | | WARNING : |
86 | | |
87 | | This script requires a recent version of PostgreSQL to run |
88 | | successfully, because it requires the ALTER TABLE DROP COLUMN |
89 | | syntax to be supported. However in case you've got an older |
90 | | version, upgrading PostgreSQL is not mandatory, you will just |
91 | | have two unused fields in the grouppquota table, these |
92 | | fields are pagecounter and lifepagecounter, just forgot them. |
93 | | |
94 | | * If you are already running PyKota 1.01 or 1.02 and want to upgrade to |
95 | | 1.03, YOU HAVE TO RUN the upgrade-from-before-1.03.py shell script. |
96 | | NOT LAUNCHING THIS SCRIPT WILL CAUSE PYKOTA TO STOP WORKING ! |
97 | | PLEASE NEVER RUN THIS SCRIPT IF YOUR EXISTING VERSION OF PYKOTA IS |
98 | | ALREADY 1.03 OD HIGHER. |
| 61 | * If you are already running an old version of PyKota (<1.03) and |
| 62 | want to upgrade to 1.03, YOU HAVE TO RUN the |
| 63 | upgrade-from-before-1.03.py shell script. NOT LAUNCHING THIS SCRIPT |
| 64 | WILL CAUSE PYKOTA TO STOP WORKING ! PLEASE NEVER RUN THIS SCRIPT IF |
| 65 | YOUR EXISTING VERSION OF PYKOTA IS ALREADY 1.03 OD HIGHER. |