From 3eadb87fd86b2331d4ea58aa86f1810bbf952c89 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 5 Aug 2019 11:36:40 +0100 Subject: [PATCH] Bug 23396: DBRev 19.06.00.016 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../data/mysql/atomicupdate/bug_23396.perl | 22 ------------------ installer/data/mysql/updatedatabase.pl | 23 +++++++++++++++++++ 3 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_23396.perl diff --git a/Koha.pm b/Koha.pm index 8a7b31af35..fac5a4f325 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "19.06.00.015"; +$VERSION = "19.06.00.016"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_23396.perl b/installer/data/mysql/atomicupdate/bug_23396.perl deleted file mode 100644 index 5f214c7546..0000000000 --- a/installer/data/mysql/atomicupdate/bug_23396.perl +++ /dev/null @@ -1,22 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - - $dbh->do(q| - INSERT IGNORE INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES - ("insert_copyright","Alt-C"), - ("insert_copyright_sound","Alt-P"), - ("insert_delimiter","Ctrl-D"), - ("subfield_help","Ctrl-H"), - ("link_authorities","Shift-Ctrl-L"), - ("delete_field","Ctrl-X"), - ("delete_subfield","Shift-Ctrl-X"), - ("new_line","Enter"), - ("line_break","Shift-Enter"), - ("next_position","Tab"), - ("prev_position","Shift-Tab"), - ("toggle_keyboard", "Shift-Ctrl-K") - ;|); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 23396 - Fix missing keyboard_shortcuts table)\n"; -} \ No newline at end of file diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8886c59692..e9423cf5c7 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -19046,6 +19046,29 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 22524 - Fix date/time-last-modified search with Elasticsearch)\n"; } +$DBversion = '19.06.00.016'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do(q| + INSERT IGNORE INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES + ("insert_copyright","Alt-C"), + ("insert_copyright_sound","Alt-P"), + ("insert_delimiter","Ctrl-D"), + ("subfield_help","Ctrl-H"), + ("link_authorities","Shift-Ctrl-L"), + ("delete_field","Ctrl-X"), + ("delete_subfield","Shift-Ctrl-X"), + ("new_line","Enter"), + ("line_break","Shift-Enter"), + ("next_position","Tab"), + ("prev_position","Shift-Tab"), + ("toggle_keyboard", "Shift-Ctrl-K") + ;|); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 23396 - Fix missing keyboard_shortcuts table)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.2