Bug 18915: DBRev 17.05.08.001
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
387b40bf23
commit
f9efe84a2d
2
Koha.pm
2
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 = "17.05.08.000";
|
||||
$VERSION = "17.05.08.001";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
-- For installations having the note already
|
||||
UPDATE letter SET code = 'CHECKOUT_NOTE', name = 'Checkout note on item set by patron', title = 'Checkout note', content = REPLACE(content, "<<biblio.item>>", "<<biblio.title>>") WHERE code = 'PATRON_NOTE';
|
||||
-- For installations coming from 17.11
|
||||
INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES ('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<<borrowers.firstname>> <<borrowers.surname>> has added a note to the item <<biblio.title>> - <<biblio.author>> (<<biblio.biblionumber>>).','email');
|
||||
|
|
@ -14635,6 +14635,26 @@ if ( CheckVersion($DBversion) ) {
|
|||
print "Upgrade to $DBversion done (Koha 17.05.08)\n";
|
||||
}
|
||||
|
||||
$DBversion = '17.05.08.001';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
#For installations having the note already
|
||||
$dbh->do(q{
|
||||
UPDATE letter
|
||||
SET code = 'CHECKOUT_NOTE',
|
||||
name = 'Checkout note on item set by patron',
|
||||
title = 'Checkout note',
|
||||
content = REPLACE(content, "<<biblio.item>>", "<<biblio.title>>")
|
||||
WHERE code = 'PATRON_NOTE';
|
||||
});
|
||||
#For installations coming from 17.11
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`)
|
||||
VALUES ('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<<borrowers.firstname>> <<borrowers.surname>> has added a note to the item <<biblio.title>> - <<biblio.author>> (<<biblio.biblionumber>>).','email')
|
||||
});
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 18915 - Correct CHECKOUT_NOTE notice template)\n";
|
||||
}
|
||||
|
||||
# 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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue