Lines 9804-9809
if ( CheckVersion($DBversion) ) {
Link Here
|
9804 |
SetVersion($DBversion); |
9804 |
SetVersion($DBversion); |
9805 |
} |
9805 |
} |
9806 |
|
9806 |
|
|
|
9807 |
$DBversion = "3.19.00.XXX"; |
9808 |
if ( CheckVersion($DBversion) ) { |
9809 |
$dbh->do(q| |
9810 |
CREATE TABLE aqorderusers ( |
9811 |
ordernumber int(11) NOT NULL, |
9812 |
borrowernumber int(11) NOT NULL, |
9813 |
PRIMARY KEY (ordernumber, borrowernumber), |
9814 |
CONSTRAINT aqorderusers_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE, |
9815 |
CONSTRAINT aqorderusers_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE |
9816 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
9817 |
|); |
9818 |
|
9819 |
$dbh->do(q| |
9820 |
INSERT INTO letter(module, code, branchcode, name, title, content, message_transport_type) |
9821 |
VALUES ('acquisition', 'ACQ_NOTIF_ON_RECEIV', '', 'Notification on receiving', 'Order received', 'Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\n The order <<aqorders.ordernumber>> (<<biblio.title>>) has been received.\n\nYour library.', 'email') |
9822 |
|); |
9823 |
print "Upgrade to $DBversion done (Bug 12648: Add letter ACQ_NOTIF_ON_RECEIV )\n"; |
9824 |
SetVersion ($DBversion); |
9825 |
} |
9826 |
|
9807 |
=head1 FUNCTIONS |
9827 |
=head1 FUNCTIONS |
9808 |
|
9828 |
|
9809 |
=head2 TableExists($table) |
9829 |
=head2 TableExists($table) |
9810 |
- |
|
|