]> git.koha-community.org Git - koha.git/blob - installer/data/mysql/atomicupdate/bug_18786.perl
Bug 18786: DBIC Schema changes
[koha.git] / installer / data / mysql / atomicupdate / bug_18786.perl
1 $DBversion = 'XXX';  # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3
4     if ( !column_exists( 'accountlines', 'payment_type' ) ) {
5         $dbh->do( "ALTER TABLE accountlines ADD `payment_type` varchar(80) default NULL AFTER accounttype" );
6     }
7
8     $dbh->do(q{INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('PAYMENT_TYPE')});
9
10     SetVersion( $DBversion );
11     print "Upgrade to $DBversion done (Bug 18786 - Add ability to create custom payment types)\n";
12 }