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>
This commit is contained in:
parent
28ff4f6393
commit
e43e972ec5
2 changed files with 11 additions and 1 deletions
|
@ -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";
|
||||
}
|
|
@ -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…
Reference in a new issue