Bug 12160: DBRev 3.21.00.002

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Tomas Cohen Arazi 2015-05-26 10:59:54 -03:00
parent 7b0792584e
commit 73d9706667
4 changed files with 19 additions and 3 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 = "3.21.00.000";
$VERSION = "3.21.00.002";
sub version {
return $VERSION;

View File

@ -1 +0,0 @@
UPDATE systempreferences SET variable="IntranetUserJS" where variable="intranetuserjs"

View File

@ -1 +0,0 @@
UPDATE systempreferences SET variable="OPACUserJS" where variable="opacuserjs"

View File

@ -10468,6 +10468,24 @@ if ( CheckVersion($DBversion) ) {
SetVersion ($DBversion);
}
$DBversion = "3.21.00.001";
if ( CheckVersion($DBversion) ) {
$dbh->do(q|
UPDATE systempreferences SET variable='IntranetUserJS' where variable='intranetuserjs'
|);
print "Upgrade to $DBversion done (Bug 12160: Rename intranetuserjs to IntranetUserJS)\n";
SetVersion ($DBversion);
}
$DBversion = "3.21.00.002";
if ( CheckVersion($DBversion) ) {
$dbh->do(q|
UPDATE systempreferences SET variable='OPACUserJS' where variable='opacuserjs'
|);
print "Upgrade to $DBversion done (Bug 12160: Rename opacuserjs to OPACUserJS)\n";
SetVersion ($DBversion);
}
# 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.