Browse Source

Bug 23673: Set updated_on=time_queued on DB update

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Jonathan Druart 4 years ago
committed by Martin Renvoize
parent
commit
043a36e46a
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 1
      installer/data/mysql/atomicupdate/bug-23673.perl

1
installer/data/mysql/atomicupdate/bug-23673.perl

@ -5,6 +5,7 @@ if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'message_queue', 'updated_on' ) ) {
$dbh->do("ALTER TABLE message_queue ADD COLUMN updated_on timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER time_queued");
$dbh->do("UPDATE message_queue SET updated_on=time_queued");
}
SetVersion( $DBversion );

Loading…
Cancel
Save