Truncate downloaded object to correct size when done.
[pithos] / README.upgrade
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.8.0
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 * Create settings.local with local setting overrides
31 * Install python-django-south
32 * Setup south:
33     python manage.py syncdb
34     python manage.py migrate im 0001 --fake
35     python manage.py migrate im
36
37 0.8.0 -> 0.8.1
38 --------------
39 * Reset 'policy' table in mysql (backend):
40     
41     mysql> update policy set `value`='auto' where `key`='versioning';