Bug 22273: Database revision for table article_requests
[koha.git] / installer / data / mysql / atomicupdate / bug22273.perl
1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3     $dbh->do( q|
4 ALTER TABLE article_requests MODIFY COLUMN created_on timestamp NULL, MODIFY COLUMN updated_on timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
5     |);
6     SetVersion( $DBversion );
7     print "Upgrade to $DBversion done (Bug 22273: Column article_requests.created_on should not be updated)\n";
8 }