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

(-)a/installer/data/mysql/atomicupdate/dbrev_test.pl (-1 / +44 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  => "BUG_NUMBER",
6
    description => "Test dbrev",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        say_success($out, "Success!");
12
        say_info($out, "Info...");
13
        say_warning($out, "Warning!!");
14
        say_failure($out, "Failure :(");
15
16
        # Do you stuffs here
17
        $dbh->do(q{CREATE TABLE borrowers});
18
19
        # Print useful stuff here
20
        # tables
21
        say $out "Added new table 'XXX'";
22
        say $out "Added column 'XXX.YYY'";
23
24
        # sysprefs
25
        say $out "Added new system preference 'XXX'";
26
        say $out "Updated system preference 'XXX'";
27
        say $out "Removed system preference 'XXX'";
28
29
        # permissions
30
        say $out "Added new permission 'XXX'";
31
32
        # letters
33
        say $out "Added new letter 'XXX' (TRANSPORT)";
34
35
        # HTML customizations
36
        say $out "Added 'XXX' HTML customization";
37
38
        # Other information
39
        say_failure( $out, "Use red for danger/failure" );
40
        say_success( $out, "Use green for success" );
41
        say_warning( $out, "Use yellow for warning/a call to action" );
42
        say_info( $out, "Use blue for further information" );
43
    },
44
};

Return to bug 38299