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

(-)a/installer/data/mysql/atomicupdate/bug_17178.perl (+15 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
    # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" );
5
6
    # or perform some test and warn
7
    # if( !column_exists( 'biblio', 'biblionumber' ) ) {
8
    #    warn "There is something wrong";
9
    # }
10
    $dbh->do( 'INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES ("toggle_keyboard", "Ctrl-K")');
11
12
    # Always end with this (adjust the bug info)
13
    SetVersion( $DBversion );
14
    print "Upgrade to $DBversion done (Bug 17178 - add shortcut to keyboard_shortcuts)\n";
15
}
(-)a/installer/data/mysql/mandatory/keyboard_shortcuts.sql (-2 / +2 lines)
Lines 31-34 INSERT INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES Link Here
31
    ("new_line","Enter"),
31
    ("new_line","Enter"),
32
    ("line_break","Shift-Enter"),
32
    ("line_break","Shift-Enter"),
33
    ("next_position","Tab"),
33
    ("next_position","Tab"),
34
    ("prev_position","Shift-Tab");
34
    ("prev_position","Shift-Tab"),
35
    ("toggle_keyboard", "Ctrl-K");
35
- 

Return to bug 17178