Bug 22516: Database update
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
f68fec12df
commit
a52c3f5fa3
2 changed files with 10 additions and 1 deletions
10
installer/data/mysql/atomicupdate/bug_22516.perl
Normal file
10
installer/data/mysql/atomicupdate/bug_22516.perl
Normal file
|
@ -0,0 +1,10 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
if ( column_exists( 'accountlines', 'lastincrement' ) ) {
|
||||
$dbh->do("ALTER TABLE `accountlines` DROP COLUMN `lastincrement`");
|
||||
}
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 22516 - Drop deprecated accountlines.lastincrement field)\n";
|
||||
}
|
|
@ -2679,7 +2679,6 @@ CREATE TABLE `accountlines` (
|
|||
`accounttype` varchar(5) default NULL,
|
||||
`payment_type` varchar(80) default NULL, -- optional authorised value PAYMENT_TYPE
|
||||
`amountoutstanding` decimal(28,6) default NULL,
|
||||
`lastincrement` decimal(28,6) default NULL,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`note` MEDIUMTEXT NULL default NULL,
|
||||
`manager_id` int(11) NULL DEFAULT NULL,
|
||||
|
|
Loading…
Reference in a new issue