View | Details | Raw Unified | Return to bug 34584
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_34584_remove_twitter.pl (+17 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "34584",
5
    description => "Update SocialNetworks system preference to Choice",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        # Do you stuffs here
11
        $dbh->do(
12
            q{UPDATE systempreferences SET type = "Choice", options = "facebook|linkedin|email" WHERE variable = "SocialNetworks"}
13
        );
14
15
        say $out "Updated system preference 'SocialNetworks'";
16
    },
17
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 / +1 lines)
Lines 680-686 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
680
('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free'),
680
('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free'),
681
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
681
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
682
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
682
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
683
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
683
('SocialNetworks','','facebook|linkedin|email','Enable/Disable social networks links in opac detail pages','Choice'),
684
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
684
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
685
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
685
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
686
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
686
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
687
- 

Return to bug 34584