From a013f2bbdd9cbf0c560a855e66d665857f8b8db0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 9 Oct 2019 14:37:39 +0100 Subject: [PATCH] Bug 17179: DBRev 19.06.00.039 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../bug_17179_add_keyboard_shortcuts.perl | 13 ------------- installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_17179_add_keyboard_shortcuts.perl diff --git a/Koha.pm b/Koha.pm index 4cb61ae833..3c02527ed5 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.038"; +$VERSION = "19.06.00.039"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_17179_add_keyboard_shortcuts.perl b/installer/data/mysql/atomicupdate/bug_17179_add_keyboard_shortcuts.perl deleted file mode 100644 index 86c536f79a..0000000000 --- a/installer/data/mysql/atomicupdate/bug_17179_add_keyboard_shortcuts.perl +++ /dev/null @@ -1,13 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q| - INSERT IGNORE INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES - ("copy_line","Ctrl-C"), - ("copy_subfield","Shift-Ctrl-C"), - ("paste_line","Ctrl-P"), - ("insert_line","Ctrl-I") - ; - |); - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 17179 - Add additional keyboard_shortcuts)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index d24612f1b4..7ee05547e8 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -19649,6 +19649,20 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 23697 - Rename CircAutocompl system preference to PatronAutoComplete)\n"; } +$DBversion = '19.06.00.039'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO keyboard_shortcuts (shortcut_name, shortcut_keys) VALUES + ("copy_line","Ctrl-C"), + ("copy_subfield","Shift-Ctrl-C"), + ("paste_line","Ctrl-P"), + ("insert_line","Ctrl-I") + ; + |); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 17179 - Add additional keyboard_shortcuts)\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.5