Bug 7806: (follow-up) Update to use sanitize_zero_date
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6ede97e3ae)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
d8e3ad15b7
commit
0e3f5279b6
|
|
@ -1,19 +1,8 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
eval {
|
||||
local $dbh->{PrintError} = 0;
|
||||
$dbh->do(q|
|
||||
UPDATE aqorders
|
||||
SET datecancellationprinted = NULL
|
||||
WHERE datecancellationprinted = '0000-00-00'
|
||||
|);
|
||||
$dbh->do(q|
|
||||
UPDATE old_issues
|
||||
SET returndate = NULL
|
||||
WHERE returndate = '0000-00-00'
|
||||
|);
|
||||
sanitize_zero_date('aqorders', 'datecancellationprinted');
|
||||
sanitize_zero_date('old_issues', 'returndate');
|
||||
|
||||
};
|
||||
NewVersion( $DBversion, 7806, "Remove remaining possible 0000-00-00 values");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue