Bug 20773: DBRev 18.06.00.016
authorNick Clemens <nick@bywatersolutions.com>
Tue, 21 Aug 2018 11:25:53 +0000 (11:25 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 21 Aug 2018 11:45:13 +0000 (11:45 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_20773.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index dec7c70..62e3cf2 100644 (file)
--- a/Koha.pm
+++ b/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 = "18.06.00.015";
+$VERSION = "18.06.00.016";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_20773.perl b/installer/data/mysql/atomicupdate/bug_20773.perl
deleted file mode 100644 (file)
index d93d304..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-$DBversion = 'XXX';  # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    my $dtf   = Koha::Database->new->schema->storage->datetime_parser;
-    my $days = C4::Context->preference('MaxPickupDelay') || 7;
-    my $date = DateTime->now()->add( days => $days );
-    my $sql = q|UPDATE reserves SET expirationdate = ? WHERE expirationdate IS NULL AND waitingdate IS NOT NULL|;
-    $dbh->do( $sql, undef, $dtf->format_datetime($date) );
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 20724 - expirationdate filled for waiting holds)\n";
-}
index 630500b..a3d8969 100755 (executable)
@@ -16255,6 +16255,17 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 21226 - Remove prefs OCLCAffiliateID, XISBN and XISBNDailyLimit)\n";
 }
 
+$DBversion = '18.06.00.016';
+if( CheckVersion( $DBversion ) ) {
+    my $dtf  = Koha::Database->new->schema->storage->datetime_parser;
+    my $days = C4::Context->preference('MaxPickupDelay') || 7;
+    my $date = DateTime->now()->add( days => $days );
+    my $sql  = q|UPDATE reserves SET expirationdate = ? WHERE expirationdate IS NULL AND waitingdate IS NOT NULL|;
+    $dbh->do( $sql, undef, $dtf->format_datetime($date) );
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 20773 - expirationdate filled for waiting holds)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.