@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_18786.perl | 10 ++++++++++ installer/data/mysql/kohastructure.sql | 1 + 2 files changed, 11 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_18786.perl --- a/installer/data/mysql/atomicupdate/bug_18786.perl +++ a/installer/data/mysql/atomicupdate/bug_18786.perl @@ -0,0 +1,10 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + + if ( !column_exists( 'accountlines', 'payment_type' ) ) { + $dbh->do( "ALTER TABLE accountlines ADD `payment_type` varchar(80) default NULL AFTER accounttype" ); + } + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 18786 - Add ability to create custom payment types)\n"; +} --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -2681,6 +2681,7 @@ CREATE TABLE `accountlines` ( `description` LONGTEXT, `dispute` LONGTEXT, `accounttype` varchar(5) default NULL, + `payment_type` varchar(80) default NULL, -- optional authorised value PAYMENT_TYPE `amountoutstanding` decimal(28,6) default NULL, `lastincrement` decimal(28,6) default NULL, `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, --