Koha/installer/data/mysql/atomicupdate/skeleton.pl
Tomas Cohen Arazi 7904c1b5d0
Bug 35681: (follow-up) Pass filehandle in skeleton.pl
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-02 16:47:41 +02:00

39 lines
1.1 KiB
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "BUG_NUMBER",
description => "A single line description",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(q{});
# Print useful stuff here
# tables
say $out "Added new table 'XXX'";
say $out "Added column 'XXX.YYY'";
# sysprefs
say $out "Added new system preference 'XXX'";
say $out "Updated system preference 'XXX'";
say $out "Removed system preference 'XXX'";
# permissions
say $out "Added new permission 'XXX'";
# letters
say $out "Added new letter 'XXX' (TRANSPORT)";
# HTML customizations
say $out "Added 'XXX' HTML customization";
# Other information
say_failure( $out, "Use red for danger/failure" );
say_success( $out, "Use green for success" );
say_warning( $out, "Use yellow for warning/a call to action" );
say_info( $out, "Use blue for further information" );
},
};