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>
This commit is contained in:
Tomás Cohen Arazi 2018-05-17 10:53:55 -03:00 committed by Nick Clemens
parent 11e513f83f
commit f9359675e2
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

@ -2680,7 +2680,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,