Bug 21953: Update existing rows in DB
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Mar 2019 19:09:06 +0000 (16:09 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 12 Apr 2019 01:51:43 +0000 (01:51 +0000)
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Test plan passes.
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>

installer/data/mysql/atomicupdate/bug_21953.sql [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug_21953.sql b/installer/data/mysql/atomicupdate/bug_21953.sql
new file mode 100644 (file)
index 0000000..8a18635
--- /dev/null
@@ -0,0 +1 @@
+UPDATE accountlines SET description=REGEXP_REPLACE(description, '^Lost Item ', '') WHERE accounttype="PF";