@@ -, +, @@ --- .../data/mysql/atomicupdate/bug_22512.perl | 18 ++++++++++++++++++ installer/data/mysql/kohastructure.sql | 1 + 2 files changed, 19 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_22512.perl --- a/installer/data/mysql/atomicupdate/bug_22512.perl +++ a/installer/data/mysql/atomicupdate/bug_22512.perl @@ -0,0 +1,18 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if ( CheckVersion($DBversion) ) { + + if ( !column_exists( 'accountlines', 'status' ) ) { + $dbh->do( + qq{ + ALTER TABLE `accountlines` + ADD + `status` varchar(16) DEFAULT NULL + AFTER + `accounttype` + } + ); + } + + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 22512 - Add status to accountlines)\n"; +} --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -2679,6 +2679,7 @@ CREATE TABLE `accountlines` ( `amount` decimal(28,6) default NULL, `description` LONGTEXT, `accounttype` varchar(5) default NULL, + `status` varchar(16) 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, --