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

(-)a/installer/data/mysql/atomicupdate/bug_28400.pl (-1 / +21 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "28400",
6
    description => "Add response_message column to message_queue table",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        if ( !column_exists( 'message_queue', 'response_message' ) ) {
12
            $dbh->do(q{
13
                ALTER TABLE message_queue
14
                ADD COLUMN response_message MEDIUMTEXT
15
            });
16
        }
17
18
        # Print useful stuff here
19
        say_success( $out, "Added column 'message_queue.response_message'" );
20
    },
21
};

Return to bug 28400