Bug 19794: (follow-up) Add atomic update
authorKatrin Fischer <katrin.fischer.83@web.de>
Tue, 17 Apr 2018 00:17:09 +0000 (00:17 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 19 Apr 2018 15:32:19 +0000 (12:32 -0300)
The update will
- change the RLIST notice code to SERIAL_ALERT
- adapt the description if it has remained unchanged from
  'Routing List' to 'New serial issue'
- update subscriptions to use the new notice code

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql b/installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql
new file mode 100644 (file)
index 0000000..05fe219
--- /dev/null
@@ -0,0 +1,4 @@
+UPDATE letter SET code = "SERIAL_ALERT" WHERE code = "RLIST";
+UPDATE letter SET name = "New serial issue" WHERE name = "Routing List";
+UPDATE subscription SET letter = "SERIAL_ALERT" WHERE letter = "RLIST";
+-- print Bug 19794: Rename RLIST notice to SERIAL_ALERT