Bug 21953: (QA follow-up) Corrections to DB Update
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
cff05f8872
commit
8ad273c125
2 changed files with 6 additions and 1 deletions
6
installer/data/mysql/atomicupdate/bug_21953.perl
Normal file
6
installer/data/mysql/atomicupdate/bug_21953.perl
Normal file
|
@ -0,0 +1,6 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do("UPDATE accountlines SET description = REPLACE(description, 'Lost Item ', '') WHERE description LIKE 'Lost Item %'");
|
||||
SetVersion($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 21953 - Remove 'Lost Item' text from accountlines description)\n";
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
UPDATE accountlines SET description=REGEXP_REPLACE(description, '^Lost Item ', '') WHERE accounttype="PF";
|
Loading…
Reference in a new issue