Browse Source
Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>20.05.x
Agustin Moyano
5 years ago
committed by
Martin Renvoize
2 changed files with 14 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||
$DBversion = 'XXX'; # will be replaced by the RM |
|||
if( CheckVersion( $DBversion ) ) { |
|||
|
|||
$dbh->do("ALTER TABLE message_queue MODIFY time_queued timestamp NULL"); |
|||
|
|||
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"); |
|||
} |
|||
|
|||
SetVersion( $DBversion ); |
|||
print "Upgrade to $DBversion done (Bug 23673 - modify time_queued and add updated_on to message_queue)\n"; |
|||
} |
Loading…
Reference in new issue