Lines 1-39
Link Here
|
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 => "A single line description", |
7 |
up => sub { |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
|
11 |
# Do you stuffs here |
12 |
$dbh->do(q{}); |
13 |
|
14 |
# Print useful stuff here |
15 |
# tables |
16 |
say $out "Added new table 'XXX'"; |
17 |
say $out "Added column 'XXX.YYY'"; |
18 |
|
19 |
# sysprefs |
20 |
say $out "Added new system preference 'XXX'"; |
21 |
say $out "Updated system preference 'XXX'"; |
22 |
say $out "Removed system preference 'XXX'"; |
23 |
|
24 |
# permissions |
25 |
say $out "Added new permission 'XXX'"; |
26 |
|
27 |
# letters |
28 |
say $out "Added new letter 'XXX' (TRANSPORT)"; |
29 |
|
30 |
# HTML customizations |
31 |
say $out "Added 'XXX' HTML customization"; |
32 |
|
33 |
# Other information |
34 |
say_failure( $out, "Use red for danger/failure" ); |
35 |
say_success( $out, "Use green for success" ); |
36 |
say_warning( $out, "Use yellow for warning/a call to action" ); |
37 |
say_info( $out, "Use blue for further information" ); |
38 |
}, |
39 |
}; |