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

(-)a/installer/data/mysql/atomicupdate/bug_28263-fix_auto_renewal_message.pl (+15 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "28263",
5
    description => "Update AUTO_RENEWAL too_many message",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh) = @$args{qw(dbh)};
9
        $dbh->do(q{
10
            UPDATE letter SET
11
            content = REPLACE(content, "You have reached the maximum number of checkouts possible." , "You have reached the maximum number of renewals possible.")
12
            WHERE ( code = 'AUTO_RENEWALS' OR code = 'AUTO_RENEWALS_DGST' );
13
        });
14
    },
15
}
(-)a/installer/data/mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl (-11 lines)
Lines 1-10 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        UPDATE letter SET
5
        content = REPLACE(content, "You have reached the maximum number of checkouts possible." , "You have reached the maximum number of renewals possible.")
6
        WHERE ( code = 'AUTO_RENEWALS' OR code = 'AUTO_RENEWALS_DGST' );
7
    });
8
9
    NewVersion( $DBversion, 28263, "Update AUTO_RENEWAL too_many message");
10
}
11
- 

Return to bug 28263