diff --git a/installer/data/mysql/atomicupdate/bug_34584_remove_twitter.pl b/installer/data/mysql/atomicupdate/bug_34584_remove_twitter.pl new file mode 100755 index 0000000000..60c6ba8879 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_34584_remove_twitter.pl @@ -0,0 +1,17 @@ +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'"; + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 30197591a8..87610fdf15 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -680,7 +680,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free'), ('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'), ('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'), -('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'), +('SocialNetworks','','facebook|linkedin|email','Enable/Disable social networks links in opac detail pages','Choice'), ('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'), ('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'), ('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),