Koha-clms/installer/data/mysql/db_revs/230600016.pl

18 lines
491 B
Perl
Executable File

use Modern::Perl;
return {
bug_number => "34584",
description => "Update SocialNetworks system preference to Choice",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{UPDATE systempreferences SET type = "Choice", options = "facebook|linkedin|email" WHERE variable = "SocialNetworks"}
);
say $out "Updated system preference 'SocialNetworks'";
},
};