Skip to content

Commit c1c1967

Browse files
committed
Bug 34355: DBRev 24.06.00.062
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
1 parent d8c0211 commit c1c1967

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Koha.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use vars qw{ $VERSION };
2929
# - #4 : the developer version. The 4th number is the database subversion.
3030
# used by developers when the database changes. updatedatabase take care of the changes itself
3131
# and is automatically called by Auth.pm when needed.
32-
$VERSION = "24.06.00.061";
32+
$VERSION = "24.06.00.062";
3333

3434
sub version {
3535
return $VERSION;

installer/data/mysql/atomicupdate/bug_34355-add_marc_order_accounts.pl installer/data/mysql/db_revs/240600062.pl

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use Modern::Perl;
2+
use Koha::Installer::Output qw(say_warning say_success say_info);
23

34
return {
45
bug_number => "34355",
5-
description => "Add a table to allow creation of MARC order accounts and a syspref to activate it.",
6+
description => "Add a table to allow creation of MARC order accounts and a system preference to activate it",
67
up => sub {
78
my ($args) = @_;
89
my ( $dbh, $out ) = @$args{qw(dbh out)};
@@ -32,22 +33,25 @@
3233
}
3334
);
3435

35-
say $out "Added new table 'marc_order_accounts'";
36+
say_success( $out, "Added new table 'marc_order_accounts'");
3637
} else {
37-
say $out "Table 'marc_order_accounts' already exists";
38+
say_info( $out, "Table 'marc_order_accounts' already exists");
3839
}
3940

4041
$dbh->do(
4142
q{
4243
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('MarcOrderingAutomation', '0', 'NULL', 'Enables automatic order line creation from MARC records', 'YesNo');
4344
}
45+
4446
);
47+
say_success( $out, "Added new system preference 'MarcOrderingAutomation'");
4548

4649
$dbh->do(
4750
q{
4851
INSERT IGNORE INTO permissions (module_bit, code, description) values (11, 'marc_order_manage', 'Manage MARC ordering');
4952
}
5053
);
54+
say_success( $out, "Added new permission 'marc_order_manage'");
5155

5256

5357

0 commit comments

Comments
 (0)