Bugzilla – Attachment 36805 Details for
Bug 12648
Link patrons to an order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12648: Rename aqorderusers to aqorder_users
Bug-12648-Rename-aqorderusers-to-aqorderusers.patch (text/plain), 3.79 KB, created by
Jonathan Druart
on 2015-03-11 14:42:07 UTC
(
hide
)
Description:
Bug 12648: Rename aqorderusers to aqorder_users
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-11 14:42:07 UTC
Size:
3.79 KB
patch
obsolete
>From 46b352c7d795d0ab352811da14800b1835f62dd2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 11 Mar 2015 15:38:37 +0100 >Subject: [PATCH] Bug 12648: Rename aqorderusers to aqorder_users > >--- > C4/Acquisition.pm | 6 +++--- > installer/data/mysql/kohastructure.sql | 10 +++++----- > installer/data/mysql/updatedatabase.pl | 6 +++--- > 3 files changed, 11 insertions(+), 11 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 273f8c0..0bb34c6 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -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); >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 5e04530..ff6dee2 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -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; > > -- >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 184927d..ca0928e 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -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; > |); > >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12648
:
30024
|
30025
|
30026
|
30027
|
30988
|
30989
|
30990
|
30991
|
31273
|
31960
|
31961
|
32230
|
33186
|
33187
|
33188
|
33189
|
33190
|
33191
|
33192
|
33193
|
34224
|
34225
|
34226
|
34227
|
34228
|
34229
|
34230
|
34231
|
34477
|
34487
|
34488
|
34489
|
34490
|
34491
|
34492
|
34493
|
34494
|
34495
|
35056
|
35058
|
35059
|
35060
|
35061
|
35062
|
35063
|
35064
|
35065
|
35066
|
36795
|
36796
|
36797
|
36798
|
36799
|
36800
|
36801
|
36802
|
36803
|
36804
| 36805 |
36807
|
36810
|
36817