Koha/installer/data/mysql
Liz Rea 79e8b928ab Bug 9745 - don't nuke translated strings in permissions on DB upgrade
To test:

(this is best done by someone who has a database with translated
strings for user permissions - I'm looking towards Katrin. :))

Get a 3.6-3.8 era database loaded as test data - also please use
a low value test database.

Translate or change the strings in the database for the user
permissions that follow in mysql client (for those who didn't
install with a different language that has translated files
at install time) -

update userflags set flagdesc="Translated text 1" where flag
IN('catalogue','editauthorities','reports','management','serials',
'updatecharges','circulate','parameters','borrowers','tools',
'staffaccess','edit_patrons');
(you will notice that this changes all of the permission labels
in the interface to "translated text 1" for the affected
permission flags. This is why I don't want you to use a high
value test database.)

Update that to master + this patch - your "translations"
should be intact.

Blow that database away, and make a brand new one 3.6-3.8 era
with the english database definitions. Run the update again with
this patch, the strings should be updated correctly.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
There was a typo in the patch, the first database update had to be
changed from this: $dbh->do{(q{ to this: $dbh->do(q{

* Test 1:
- git checkout v3.06.05
- Run through the web installer in Norwegian, installing all
  Norwegian sample data
- git checkout <master + patch for bug 9745>
- Run web installer/upgrade
- Almost all of the permissions are still in Norwegian. The ones
  that are in English are not touched by the database update for
  3.11.00.016, so they must have been introduced by other updates.

* Test 2:
- git checkout v3.06.05
- Run through the web installer in English, installing all English
  sample data
- git checkout <master + patch for bug 9745>
- Run web installer/upgrade
- All permissions have been updated as expected, except "Perform
  batch modification of patrons" which is not in the 'userflags'
  table, but in the 'permissions' table. I have amended the patch
  to account for this.

Two fixes to the original patch, please give a shout if this
makes a second signoff necessary!

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
I tested this on an English and a German sample base updating
from 3.06.07 successfully.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Corrected incorrect field names in the last query (it's
permissions.description not permissions.flagdesc).
2013-03-30 08:24:59 -04:00
..
atomicupdate Bug 7475: Update configuration 2012-09-19 17:15:25 +02:00
de-DE Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
en Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
es-ES Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
fr-FR Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
it-IT Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
nb-NO Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
pl-PL Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
ru-RU Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
uk-UA Revert "Merge branch 'bug_7688' into 3.12-master" 2013-03-23 00:36:37 -04:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 9919: Correct syntax error caused by missing comma. 2013-03-25 08:43:26 -04:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sample_only_param_tables.sql Moved location of updater scripts to dbms specific dir. 2007-11-13 11:22:47 -06:00
sysprefs.sql Merge branch 'bug_7740' into 3.12-master 2013-03-22 23:22:42 -04:00
update22to30.pl Bug 8289 Upgrading from 2.2 does not work anymore 2012-06-25 16:15:42 +02:00
updatedatabase.pl Bug 9745 - don't nuke translated strings in permissions on DB upgrade 2013-03-30 08:24:59 -04:00