Bug 27779: (QA follow-up) Fix database update
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 Jun 2022 13:30:53 +0000 (14:30 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 8 Aug 2022 16:37:27 +0000 (13:37 -0300)
Don't overwrite peoples translations if they've already changed the
description.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/bug_27779.pl

index f99c08d..1be4bf0 100755 (executable)
@@ -9,7 +9,7 @@ return {
 
         $dbh->do(q{
             UPDATE account_credit_types
-            SET description = 'Refund' WHERE code = 'REFUND'
+            SET description = 'Refund' WHERE code = 'REFUND' AND description = 'A refund applied to a patrons fine';
         });
     },
 }