View | Details | Raw Unified | Return to bug 22577
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_22577.perl (-1 / +4 lines)
Lines 1-6 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "INSERT INTO `borrowers` (borrowernumber, surname, firstname) VALUES ('-1', 'CRON', 'CRON')" );
3
    $dbh->do( "INSERT INTO `borrowers` (borrowernumber, surname, firstname) VALUES ('-1', 'CRON', 'CRON')" );
4
    $dbh->do( "UPDATE `statistics` SET borrowernumber = '-1' WHERE borrowernumber = '0'" );
5
    $dbh->do( "UPDATE `statistics` SET borrowernumber = '-1' WHERE borrowernumber = '0'" );
6
    $dbh->do( "UPDATE `accountlines` SET manager_id = '-1' WHERE manager_id = '0'" );
7
    $dbh->do( "UPDATE `action_logs` SET user = '-1' WHERE user = '0'" );
4
    
8
    
5
    SetVersion( $DBversion );
9
    SetVersion( $DBversion );
6
    print "Upgrade to $DBversion done (Bug 22577 - Add internal user for cron)\n";
10
    print "Upgrade to $DBversion done (Bug 22577 - Add internal user for cron)\n";
7
- 

Return to bug 22577