# - #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 = "19.12.00.050";
+$VERSION = "19.12.00.051";
sub version {
return $VERSION;
+++ /dev/null
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
- $dbh->do(q{
- UPDATE systempreferences SET options = 'itemhomebranch|patronhomebranch|checkoutbranch|none' WHERE variable='OpacRenewalBranch'
- });
- $dbh->do(q{
- UPDATE systempreferences SET value = "none" WHERE variable='OpacRenewalBranch'
- AND value = 'NULL'
- });
- $dbh->do(q{
- UPDATE systempreferences SET value = 'opacrenew' WHERE variable='OpacRenewalBranch'
- AND value NOT IN ('checkoutbranch','itemhomebranch','opacrenew','patronhomebranch','none')
- });
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 24759 - cleanup OpacRenewalBranch)\n";
-}
NewVersion( $DBversion, 24854, "Remove IDreamBooks* system preferences");
}
+$DBversion = '19.12.00.051';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q{
+ UPDATE systempreferences SET options = 'itemhomebranch|patronhomebranch|checkoutbranch|none' WHERE variable='OpacRenewalBranch'
+ });
+ $dbh->do(q{
+ UPDATE systempreferences SET value = "none" WHERE variable='OpacRenewalBranch'
+ AND value = 'NULL'
+ });
+ $dbh->do(q{
+ UPDATE systempreferences SET value = 'opacrenew' WHERE variable='OpacRenewalBranch'
+ AND value NOT IN ('checkoutbranch','itemhomebranch','opacrenew','patronhomebranch','none')
+ });
+
+ NewVersion( $DBversion, 24759, "Cleanup OpacRenewalBranch");
+}
+
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';