Browse Source
accountlines.accounttype is currently a short varchar(5) field for to store accounttype codes. Koha is moving towards more descriptive codes which require a larger capacity varchar(16). Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>19.05.x
2 changed files with 17 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||||
|
$DBversion = 'XXX'; # will be replaced by the RM |
||||
|
if ( CheckVersion($DBversion) ) { |
||||
|
|
||||
|
if ( column_exists( 'accountlines', 'accounttype' ) ) { |
||||
|
$dbh->do( |
||||
|
qq{ |
||||
|
ALTER TABLE `accountlines` |
||||
|
CHANGE COLUMN `accounttype` |
||||
|
`accounttype` varchar(16) DEFAULT NULL; |
||||
|
} |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
SetVersion($DBversion); |
||||
|
print "Upgrade to $DBversion done (Bug 22521 - Update accountlines.accounttype to varchar(16))\n"; |
||||
|
} |
Loading…
Reference in new issue