witten
/
luminotes
Archived
1
0
Fork 0

Additional comments on upgrading.

This commit is contained in:
Dan Helfman 2008-03-17 21:58:54 +00:00
parent 0967965847
commit 16333c48ec
2 changed files with 13 additions and 4 deletions

16
UPGRADE
View File

@ -1,12 +1,20 @@
To upgrade the Luminotes database from an earlier version, manually apply each
relevant schema delta file within model/delta/
For instance, if you were upgrading from version 1.0.1 to 1.0.4, you would
For instance, if you were upgrading from version 5.0.1 to 5.0.4, you would
apply the following deltas in order:
psql -U luminotes luminotes -f model/delta/1.0.2.sql
psql -U luminotes luminotes -f model/delta/1.0.3.sql
psql -U luminotes luminotes -f model/delta/1.0.4.sql
psql -U luminotes luminotes -f model/delta/5.0.2.sql
psql -U luminotes luminotes -f model/delta/5.0.3.sql
psql -U luminotes luminotes -f model/delta/5.0.4.sql
Any version which does not introduce a schema change does not have a
corresponding schema delta file.
Sometimes I include comments within a schema delta file with additional
manual steps you need to take.
After you've updated the schema, run the updatedb.py script:
export PYTHONPATH=.
python2.4 tools/updatedb.py

View File

@ -1 +1,2 @@
alter table user_notebook add column rank numeric;
-- You should also run the tools/set_ranks.py script to rank unranked notebooks.