Browse Source

Bug 21683: Database update

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
19.05.x
Josef Moravec 6 years ago
committed by Nick Clemens
parent
commit
e43e972ec5
  1. 11
      installer/data/mysql/atomicupdate/bug_21683_remove_column_accountno.perl
  2. 1
      installer/data/mysql/kohastructure.sql

11
installer/data/mysql/atomicupdate/bug_21683_remove_column_accountno.perl

@ -0,0 +1,11 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( column_exists( 'accountlines', 'accountno' ) ) {
$dbh->do( "ALTER TABLE accountlines DROP COLUMN accountno" );
}
# Always end with this (adjust the bug info)
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug XXXXX - description)\n";
}

1
installer/data/mysql/kohastructure.sql

@ -2673,7 +2673,6 @@ CREATE TABLE `accountlines` (
`accountlines_id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) NULL DEFAULT NULL,
`borrowernumber` int(11) DEFAULT NULL,
`accountno` smallint(6) NOT NULL default 0,
`itemnumber` int(11) default NULL,
`date` date default NULL,
`amount` decimal(28,6) default NULL,

Loading…
Cancel
Save