Bug 23539: accountlines.accounttype should match authorised_values.authorised_value in size

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Kyle Hall 2019-09-04 13:48:41 -04:00 committed by Martin Renvoize
parent aede6896dd
commit 00c61beff9
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{ALTER TABLE accountlines CHANGE COLUMN accounttype accounttype varchar(80) default NULL});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 23539 - accountlines.accounttype should match authorised_values.authorised_value in size)\n";
}

View file

@ -2611,7 +2611,7 @@ CREATE TABLE `accountlines` (
`date` date default NULL,
`amount` decimal(28,6) default NULL,
`description` LONGTEXT,
`accounttype` varchar(16) default NULL,
`accounttype` varchar(80) default NULL,
`status` varchar(16) default NULL,
`payment_type` varchar(80) default NULL, -- optional authorised value PAYMENT_TYPE
`amountoutstanding` decimal(28,6) default NULL,