[tryton-debian-vcs] tryton-server branch debian updated. debian/4.2.0-1-5-ga7a883a

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Fri Dec 16 12:28:22 UTC 2016


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=debian/4.2.0-1-5-ga7a883a

commit a7a883a629756d1f879334bc9255c7fbb825c8e9
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri Dec 16 13:28:00 2016 +0100

    Extend the README.Debian to contain also hints for language activation and manual migration procedures.

diff --git a/debian/tryton-server.README.Debian b/debian/tryton-server.README.Debian
index 09e1bc9..da1d9d2 100644
--- a/debian/tryton-server.README.Debian
+++ b/debian/tryton-server.README.Debian
@@ -99,13 +99,26 @@ On the command line:
     Note: Use the database name you chose in the previous step (here as default: tryton).
     You will be asked for the admin password for this database.
 
-As result you will have a bare Tryton database with the base modules installed.
+    As result you will have a bare Tryton database with the base modules installed.
+  
+  * Activating a new language on an existing database:
+
+    $ sudo -u tryton trytond-admin -v -c /etc/tryton/trytond.conf --all -d <your_database_name> -l <language_code>
+
+    Available language codes are at the time of writing:
+    en, bg, ca, cs, de, es, es_419, fr, hu_HU, it_IT, lo, lt, nl, pt_BR, ru, sl, zh_CN
 
 Upgrade
 -------
 
   * Once you have upgraded to a new major version (second number of the
     version string) you have to update your database(s).
+
+    While usually migrations between major versions are fully supported, it is
+    always a good idea to check the migration page of the upstream project at
+    https://discuss.tryton.org/c/migration for any manual action to take before or
+    after the upgrade process.
+    
     After the categorically recommended backup do:
 
     $ sudo -u tryton trytond-admin -v -c /etc/tryton/trytond.conf --all -d <your_database_name>
commit ab90eb5494268f0b7bc97e9bef1bf915985e0d30
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri Dec 16 13:26:21 2016 +0100

    Include the language code update into the upgrade procedures for 4.2.

diff --git a/debian/NEWS b/debian/NEWS
index f523fb0..b729a16 100644
--- a/debian/NEWS
+++ b/debian/NEWS
@@ -5,7 +5,15 @@ tryton-server (4.2.0-1) unstable; urgency=medium
   /usr/share/doc/tryton-server/README.Debian how to do that.
 
   As for each major release don't forget to backup your database(s) and
-  then run the database update with
+  follow the upgrade procedures:
+
+  Language codes have been simplified. If you happen to have custom
+  translations in your database(s) you must update the translation code
+  via SQL to match the new short code.
+  Here is an example for the code change from en_US to en:
+    UPDATE ir_translation SET lang = 'en' WHERE lang = 'en_US';
+  
+  Finally run the database update with
   $ sudo -u tryton trytond-admin -v -c /etc/tryton/trytond.conf --all -d <your_database_name>
   and restart the server(s) with
   $ sudo service tryton-server restart
-- 
tryton-server



More information about the tryton-debian-vcs mailing list