Bug 11317: DBRev 17.12.00.041

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-05-03 13:39:53 -03:00
parent 8c4928048e
commit 150a589e08
3 changed files with 12 additions and 2 deletions

View File

@ -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;

View File

@ -1 +0,0 @@
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'access_files', 'Access to the files stored on the server');

View File

@ -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.