# - #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;
+++ /dev/null
-$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";
-}
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/';