Bug 20624: DBRev 17.12.00.044

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-05-08 16:07:03 -03:00
parent 17e8acad70
commit b8acd86231
3 changed files with 14 additions and 13 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.043";
$VERSION = "17.12.00.044";
sub version {
return $VERSION;

View file

@ -1,12 +0,0 @@
$DBversion = "XXX";
if(CheckVersion($DBversion)) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
VALUES
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo');
});
print "Upgrade to $DBversion done (Bug 20624 - Disable OAuth2 client credentials grant by default)\n";
SetVersion($DBversion);
}

View file

@ -16036,6 +16036,19 @@ if(CheckVersion($DBversion)) {
SetVersion($DBversion);
}
$DBversion = '17.12.00.044';
if(CheckVersion($DBversion)) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
VALUES
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo');
});
print "Upgrade to $DBversion done (Bug 20624 - Disable OAuth2 client credentials grant by default)\n";
SetVersion($DBversion);
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.