소스 검색
We should remove all SQL queries that contain 0000-00-00 and finally assume we do not longer have such value in our DB (for date type) We already dealt with such values in previous update DB entries. The 2 added by this one haven't been replaced already. The code will now assume that either a valid date exist, or NULL/undef. Test plan: QA review is needed and test of the different places where code is modified. Not sure about the change from reports/issues_avg_stats.pl 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>21.05.x
Jonathan Druart
3 년 전
13개의 변경된 파일과 42개의 추가작업 그리고 46개의 파일을 삭제
@ -0,0 +1,19 @@ |
|||
$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' |
|||
|); |
|||
|
|||
}; |
|||
NewVersion( $DBversion, 7806, "Remove remaining possible 0000-00-00 values"); |
|||
} |
불러오는 중...
Reference in new issue