1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
4 if ( !column_exists( 'accountlines', 'payment_type' ) ) {
5 $dbh->do( "ALTER TABLE accountlines ADD `payment_type` varchar(80) default NULL AFTER accounttype" );
8 $dbh->do(q{INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('PAYMENT_TYPE')});
10 SetVersion( $DBversion );
11 print "Upgrade to $DBversion done (Bug 18786 - Add ability to create custom payment types)\n";