Browse Source

Bug 18403: DBRev 17.12.00.009

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Jonathan Druart 4 years ago
parent
commit
340c18d8bc
  1. 2
      Koha.pm
  2. 13
      installer/data/mysql/atomicupdate/bug_xxxxx-add-permission.perl
  3. 14
      installer/data/mysql/updatedatabase.pl

2
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.008";
$VERSION = "17.12.00.009";
sub version {
return $VERSION;

13
installer/data/mysql/atomicupdate/bug_xxxxx-add-permission.perl

@ -1,13 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q|
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
(4, 'edit_borrowers', 'Add, modify and view patron information'),
(4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries');
|);
# We are lucky here, there is nothing else to do: flags 4-borrowers did not contain sub permissions
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug XXXXX - Add the view_borrower_infos_from_any_libraries permission )\n";
}

14
installer/data/mysql/updatedatabase.pl

@ -15295,6 +15295,20 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = '17.12.00.009';
if ( CheckVersion($DBversion) ) {
$dbh->do(q|
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
(4, 'edit_borrowers', 'Add, modify and view patron information'),
(4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries');
|);
# We are lucky here, there is nothing else to do: flags 4-borrowers did not contain sub permissions
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18403 - Add the view_borrower_infos_from_any_libraries permission )\n";
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.

Loading…
Cancel
Save