From 051a9d740f8eb3260e814284d80c63ee21beaf9b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Apr 2021 12:16:47 +0000 Subject: [PATCH] Bug 15986: DBRev 20.12.00.032 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_15986_add_holdreminder_notice.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15986_add_holdreminder_notice.perl diff --git a/Koha.pm b/Koha.pm index e3205798ed..820bf50126 100644 --- 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 = "20.12.00.031"; +$VERSION = "20.12.00.032"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_15986_add_holdreminder_notice.perl b/installer/data/mysql/atomicupdate/bug_15986_add_holdreminder_notice.perl deleted file mode 100644 index 67dd9b2a91..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15986_add_holdreminder_notice.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO letter - (module,code,branchcode,name,is_html,title,content,message_transport_type,lang) - VALUES ('reserves','HOLD_REMINDER','','Waiting hold reminder',0,'You have waiting holds.','Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nThe following holds are waiting at [% branch.branchname %]:\r\n\\r\n[% FOREACH hold IN holds %]\r\n [% hold.biblio.title %] : waiting since [% hold.waitingdate | $KohaDates %]\r\n[% END %]','email','default') - }); - NewVersion( $DBversion, 15986, "Add sample HOLD_REMINDER notice"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9fcbabd8b2..754a3d068b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23817,6 +23817,17 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 21260, "Add new system preference Reference_NFL_Statuses"); } +$DBversion = '20.12.00.032'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO letter + (module,code,branchcode,name,is_html,title,content,message_transport_type,lang) + VALUES ('reserves','HOLD_REMINDER','','Waiting hold reminder',0,'You have waiting holds.','Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nThe following holds are waiting at [% branch.branchname %]:\r\n\\r\n[% FOREACH hold IN holds %]\r\n [% hold.biblio.title %] : waiting since [% hold.waitingdate | $KohaDates %]\r\n[% END %]','email','default') + }); + + NewVersion( $DBversion, 15986, "Add sample HOLD_REMINDER notice"); +} + # 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/'; -- 2.39.5