Bugzilla – Attachment 89739 Details for
Bug 22899
Cannot view course details
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22899: (QA follow-up) Ensure constraint is created
Bug-22899-QA-follow-up-Ensure-constraint-is-create.patch (text/plain), 1.34 KB, created by
Martin Renvoize
on 2019-05-14 12:25:01 UTC
(
hide
)
Description:
Bug 22899: (QA follow-up) Ensure constraint is created
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2019-05-14 12:25:01 UTC
Size:
1.34 KB
patch
obsolete
>From c0160f756aaee8f139c058936fafa9b887e8e67c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 14 May 2019 13:17:01 +0100 >Subject: [PATCH] Bug 22899: (QA follow-up) Ensure constraint is created > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../bug_22899_add_items_constraint_to_tmpholdsqueue.perl | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/installer/data/mysql/atomicupdate/bug_22899_add_items_constraint_to_tmpholdsqueue.perl b/installer/data/mysql/atomicupdate/bug_22899_add_items_constraint_to_tmpholdsqueue.perl >index 1e14394955..79e8f41646 100644 >--- a/installer/data/mysql/atomicupdate/bug_22899_add_items_constraint_to_tmpholdsqueue.perl >+++ b/installer/data/mysql/atomicupdate/bug_22899_add_items_constraint_to_tmpholdsqueue.perl >@@ -2,6 +2,11 @@ $DBversion = 'XXX'; # will be replaced by the RM > if( CheckVersion( $DBversion ) ) { > # you can use $dbh here like: > unless ( foreign_key_exists( 'tmp_holdsqueue', 'tmp_holdsqueue_ibfk_1' ) ) { >+ $dbh->do(q{ >+ DELETE t FROM tmp_holdsqueue t >+ LEFT JOIN items i ON t.itemnumber=i.itemnumber >+ WHERE i.itemnumber IS NULL >+ }); > $dbh->do(q{ > ALTER TABLE tmp_holdsqueue > ADD CONSTRAINT `tmp_holdsqueue_ibfk_1` FOREIGN KEY (`itemnumber`) >-- >2.20.1
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 22899
:
89706
|
89707
|
89708
|
89709
|
89725
|
89736
|
89737
|
89738
| 89739 |
89740