Bug 20777: Remove unused accountlines.dispute field

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f9359675e2)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomas Cohen Arazi 2018-05-17 10:53:55 -03:00 committed by Martin Renvoize
parent 44ce16d006
commit d3d43360b0
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,13 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
if ( column_exists( 'accountlines', 'dispute' ) ) {
$dbh->do(q{
ALTER TABLE `accountlines`
DROP COLUMN `dispute`
});
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 20777 - Remove unused field accountlines.dispute)\n";
}

View File

@ -2693,7 +2693,6 @@ CREATE TABLE `accountlines` (
`date` date default NULL,
`amount` decimal(28,6) default NULL,
`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,