Bug 28872: Fix QA issues on atomicupdate
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
31c3455f8a
commit
fc48decc31
1 changed files with 2 additions and 6 deletions
8
installer/data/mysql/atomicupdate/bug_28872_update_log_values.pl
Normal file → Executable file
8
installer/data/mysql/atomicupdate/bug_28872_update_log_values.pl
Normal file → Executable file
|
@ -1,16 +1,12 @@
|
|||
use Modern::Perl;
|
||||
|
||||
{
|
||||
return {
|
||||
bug_number => "28872",
|
||||
description => "update values from on and off to 1 and 0",
|
||||
description => "Update syspref values from on and off to 1 and 0",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
# Do you stuffs here
|
||||
$dbh->do(q{update systempreferences set value=1 where variable in ('AcquisitionLog', 'NewsLog', 'NoticesLog') and value='on'});
|
||||
$dbh->do(q{update systempreferences set value=0 where variable in ('AcquisitionLog', 'NewsLog', 'NoticesLog') and value='off'});
|
||||
|
||||
# Print useful stuff here
|
||||
say $out "Update is going well so far";
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue