From 150a589e088906e2eed255fe05aa292dfdde5fdc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 3 May 2018 13:39:53 -0300 Subject: [PATCH] Bug 11317: DBRev 17.12.00.041 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bz11317-add-permission-for-tools-access-file.sql | 1 - installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql diff --git a/Koha.pm b/Koha.pm index f2c0d490c0..644fe26d69 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 = "17.12.00.040"; +$VERSION = "17.12.00.041"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql b/installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql deleted file mode 100644 index 8861378cb5..0000000000 --- a/installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'access_files', 'Access to the files stored on the server'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 98aae8d060..880b500e98 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15981,6 +15981,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20100 - Add new system preference ProtectSuperlibrarianPrivileges)\n"; } +$DBversion = '17.12.00.041'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do( q{ + INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'access_files', 'Access to the files stored on the server'); + } ); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 11317 - Add a new permission to access files stored on the server)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5