root / README.upgrade @ 7f5c469e
History | View | Annotate | Download (997 Bytes)
1 |
UPGRADE |
---|---|
2 |
======= |
3 |
|
4 |
0.7.9 -> 0.7.10 |
5 |
--------------- |
6 |
* Update settings.py (BACKEND*, SERVICE_NAME, *_EMAIL, *_TARGET, IM_*) |
7 |
* Update 'attributes' table in mysql (backend): |
8 |
|
9 |
mysql> update attributes set `key`='ETag' where `key`='hash'; |
10 |
|
11 |
* Upgrade 'im_user' table (im app): |
12 |
|
13 |
ALTER TABLE im_user ADD COLUMN 'password' VARCHAR(255); |
14 |
|
15 |
0.7.10 -> 0.7.11 |
16 |
---------------- |
17 |
* Upgrade 'public' table in mysql (backend): |
18 |
* Run: mysqldump pithosdb public > public-table.sql |
19 |
* mysql> drop table public; |
20 |
* Update the codebase and run the server so the new public table is created |
21 |
* From the sql dump above, take the row: |
22 |
|
23 |
INSERT INTO `public` VALUES (...); |
24 |
|
25 |
Rewrite as: |
26 |
|
27 |
INSERT INTO `public`(`path`) VALUES (...); |
28 |
|
29 |
And execute in the database |
30 |
|
31 |
* Add 'south', remove 'pithos.public' in INSTALLED_APPS in settings.py |
32 |
* Install python-django-south |
33 |
* Setup south: |
34 |
python manage.py syncdb |
35 |
python manage.py migrate im 0001 --fake |
36 |
python manage.py migrate im |