Commits

Anonymous committed ba3867d

More upgrade instructions for 0.7.

Comments (0)

Files changed (2)

docs/releases/0.6.txt

 ----------------
 
 The schema has undergone many changes, and 0.6 includes code to perform
-a schema evolution using ``django-evolution``. To use it, follow these steps:
+a schema evolution using ``django-evolution``.
+
+.. warning::
+
+    Due to heavy changes in the schema, the following were only tested and
+    guaranteed to work only with PostgreSQL.
+
+Here are the steps:
   
 - Add ``django_evolution`` to ``INSTALLED_APPS`` in the 0.5.x Transifex
   configuration.
 - Run ``python manage.py evolve ---execute``, and then ``python manage.py
   syncdb`` again.
 
-The settings files have been broken down for easier maintenance in
-``settings/``. The ``settings.py`` file needs to be overwritten with the new
-version and settings migrated to the respective ``.conf`` files. 
+Finally, execute the following code on the command line::
+
+    cd <transifex_path>/transifex/
+    ./manage.py shell
+    
+    from translations.models import POFile
+    for po in POFile.objects.all():
+        if po.language:
+            po.language_code = po.language.code
+        else:
+            po.language_code = po.object.trans.tm.guess_language(po.filename)
+        po.save()
+
+Also note that the settings files have been broken down for easier maintenance
+in ``settings/``. The ``settings.py`` file needs to be overwritten with the
+new version and settings migrated to the respective ``.conf`` files.
 
 
 Contributors

docs/releases/0.7.txt

 Upgrading to 0.7
 ----------------
 
+To upgrade the code, update your package distribution as usual.
+
 Dependencies
 ::::::::::::
 
 :ref:`Installation docs <intro-install>`. You'll need to complete this step
 before actually doing the database upgrade.
 
-Upgrade instructions
-::::::::::::::::::::
+Database migration
+::::::::::::::::::
 
-Transifex includes script which will automatically migrate your database to
-the new schema. All you need to do, from a clean 0.6 schema, is run the
-following::
+Transifex includes a script which will automatically migrate your database to
+the new schema from the previous version. All you need to do, from a clean
+0.6 schema, is run the following::
 
     ./manage.py syncdb
     ./manage.py migrate 0001_initial --all --fake
     ./manage.py migrate
 
+.. note::
+
+    Transifex does not support direct database migration from 0.5 to 0.7. To
+    upgrade from a 0.5 schema it's necessary to first upgrade your schema to
+    v0.6. Instructions to do this can be found in relevant section of the
+    :ref:`Transifex 0.6 release notes <releases-0.6>`.
+
 
 Contributors
 ------------