Bug 24163: DBRev 19.12.00.086
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 May 2020 10:14:49 +0000 (11:14 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 May 2020 10:14:49 +0000 (11:14 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha.pm
installer/data/mysql/atomicupdate/bug_24163.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index c776504..cafbd96 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 = "19.12.00.085";
+$VERSION = "19.12.00.086";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_24163.perl b/installer/data/mysql/atomicupdate/bug_24163.perl
deleted file mode 100644 (file)
index 6488cdf..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    $dbh->do(q{
-        INSERT IGNORE INTO export_format( profile, description, content, csv_separator, type, used_for ) VALUES
-        ("Late orders (CSV profile)", "Default CSV export for late orders", 'Title[% separator %]Author[% separator %]Publication year[% separator %]ISBN[% separator %]Quantity[% separator %]Number of claims
-        [% FOR order IN orders ~%]
-        [%~ SET biblio = order.biblio ~%]
-        "[% biblio.title %]"[% separator ~%]
-        "[% biblio.author %]"[% separator ~%]
-        "[% bibio.biblioitem.publicationyear %]"[% separator ~%]
-        "[% biblio.biblioitem.isbn %]"[% separator ~%]
-        "[% order.quantity%]"[% separator ~%]
-        "[% order.claims.count%][% IF order.claims.count %]([% FOR c IN order.claims %][% c.claimed_on | $KohaDates %][% UNLESS loop.last %], [% END %][% END %])[% END %]"
-        [% END %]', ",", "sql", "late_orders")
-    });
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 24163 - Define a default CSV profile for late orders)\n";
-}
index f9732b8..6dfc067 100755 (executable)
@@ -22028,6 +22028,25 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 24161, "Add new join table aqorders_claims to keep track of claims");
 }
 
+$DBversion = '19.12.00.086';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        INSERT IGNORE INTO export_format( profile, description, content, csv_separator, type, used_for ) VALUES
+        ("Late orders (CSV profile)", "Default CSV export for late orders", 'Title[% separator %]Author[% separator %]Publication year[% separator %]ISBN[% separator %]Quantity[% separator %]Number of claims
+        [% FOR order IN orders ~%]
+        [%~ SET biblio = order.biblio ~%]
+        "[% biblio.title %]"[% separator ~%]
+        "[% biblio.author %]"[% separator ~%]
+        "[% bibio.biblioitem.publicationyear %]"[% separator ~%]
+        "[% biblio.biblioitem.isbn %]"[% separator ~%]
+        "[% order.quantity%]"[% separator ~%]
+        "[% order.claims.count%][% IF order.claims.count %]([% FOR c IN order.claims %][% c.claimed_on | $KohaDates %][% UNLESS loop.last %], [% END %][% END %])[% END %]"
+        [% END %]', ",", "sql", "late_orders")
+    });
+
+    NewVersion( $DBversion, 24163, "Define a default CSV profile for late orders");
+}
+
 # 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/';