From 8e82477759245af97dfba692ee2b55f6b1db6ab9 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Wed, 14 Jan 2015 10:55:19 +0100
Subject: [PATCH] Bug 5338: Add "Serials" to the report group list

---
 installer/data/mysql/updatedatabase.pl | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index 4653c02..36d05f9 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -9669,6 +9669,18 @@ if ( CheckVersion($DBversion) ) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.19.00.XXX";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        INSERT INTO authorised_values (category, authorised_value, lib) VALUES
+        ('REPORT_GROUP', 'SER', 'Serials')
+    |);
+
+    print "Upgrade to $DBversion done (Bug 5338 - Add Serial to the report groups)\n";
+    SetVersion ($DBversion);
+}
+
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)
-- 
2.1.0