Bug 8732: Update statement
authorNick Clemens <nick@bywatersolutions.com>
Thu, 16 Jul 2020 11:47:04 +0000 (11:47 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:10:53 +0000 (12:10 +0200)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl b/installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl
new file mode 100644 (file)
index 0000000..9af09f3
--- /dev/null
@@ -0,0 +1,7 @@
+$DBversion = 'XXX'; # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('BiblioItemtypeInfo', '0','Control whether biblio level itemtype image displays','0','YesNo')" );
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 8732: Add new BiblioItemtypeInfo to system preferences)\n";
+}