From 76d0b2a0f93e2d5f7ff48a16ccf2e9ce3c3809dc Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 4 Sep 2019 13:48:41 -0400 Subject: [PATCH] Bug 23539: accountlines.accounttype should match authorised_values.authorised_value in size Content-Type: text/plain; charset=utf-8 Signed-off-by: Owen Leonard Signed-off-by: Marcel de Rooy --- installer/data/mysql/atomicupdate/bug_23439.perl | 7 +++++++ installer/data/mysql/kohastructure.sql | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 installer/data/mysql/atomicupdate/bug_23439.perl diff --git a/installer/data/mysql/atomicupdate/bug_23439.perl b/installer/data/mysql/atomicupdate/bug_23439.perl new file mode 100644 index 0000000000..3ce88f30ca --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_23439.perl @@ -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"; +} diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index cd7d7dfbcc..673f83ee57 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -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, -- 2.11.0