Bug 18786: Add PAYMENT_TYPE to the AV categories
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 13 Apr 2018 16:15:57 +0000 (13:15 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 19 Apr 2018 15:32:21 +0000 (12:32 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_18786.perl

index 7617bc5..4d06f6c 100644 (file)
@@ -5,6 +5,8 @@ if( CheckVersion( $DBversion ) ) {
         $dbh->do( "ALTER TABLE accountlines ADD `payment_type` varchar(80) default NULL AFTER accounttype" );
     }
 
+    $dbh->do(q{INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('PAYMENT_TYPE')});
+
     SetVersion( $DBversion );
     print "Upgrade to $DBversion done (Bug 18786 - Add ability to create custom payment types)\n";
 }