Bug 12648: (QA followup) Rename aqorderusers to aqorder_users
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Thanks Jonathan
This commit is contained in:
parent
105f8f57f2
commit
a111ffb92e
|
|
@ -2915,7 +2915,7 @@ sub GetOrderUsers {
|
|||
|
||||
my $query = q|
|
||||
SELECT borrowernumber
|
||||
FROM aqorderusers
|
||||
FROM aqorder_users
|
||||
WHERE ordernumber = ?
|
||||
|;
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
|
@ -2948,14 +2948,14 @@ sub ModOrderUsers {
|
|||
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $query = q|
|
||||
DELETE FROM aqorderusers
|
||||
DELETE FROM aqorder_users
|
||||
WHERE ordernumber = ?
|
||||
|;
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute($ordernumber);
|
||||
|
||||
$query = q|
|
||||
INSERT INTO aqorderusers (ordernumber, borrowernumber)
|
||||
INSERT INTO aqorder_users (ordernumber, borrowernumber)
|
||||
VALUES (?, ?)
|
||||
|;
|
||||
$sth = $dbh->prepare($query);
|
||||
|
|
|
|||
|
|
@ -3089,16 +3089,16 @@ CREATE TABLE `aqorders` ( -- information related to the basket line items
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Table structure for table `aqorderusers`
|
||||
-- Table structure for table `aqorder_users`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `aqorderusers`;
|
||||
CREATE TABLE aqorderusers (
|
||||
DROP TABLE IF EXISTS `aqorder_users`;
|
||||
CREATE TABLE aqorder_users (
|
||||
ordernumber int(11) NOT NULL,
|
||||
borrowernumber int(11) NOT NULL,
|
||||
PRIMARY KEY (ordernumber, borrowernumber),
|
||||
CONSTRAINT aqorderusers_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT aqorderusers_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
CONSTRAINT aqorder_users_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT aqorder_users_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
|
|
|
|||
|
|
@ -9807,12 +9807,12 @@ if ( CheckVersion($DBversion) ) {
|
|||
$DBversion = "3.19.00.XXX";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do(q|
|
||||
CREATE TABLE aqorderusers (
|
||||
CREATE TABLE aqorder_users (
|
||||
ordernumber int(11) NOT NULL,
|
||||
borrowernumber int(11) NOT NULL,
|
||||
PRIMARY KEY (ordernumber, borrowernumber),
|
||||
CONSTRAINT aqorderusers_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT aqorderusers_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
CONSTRAINT aqorder_users_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT aqorder_users_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue