Bugzilla – Attachment 174974 Details for
Bug 22421
accountlines.issue_id is missing a foreign key constraint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22421: Fix KEY names
Bug-22421-Fix-KEY-names.patch (text/plain), 1.51 KB, created by
Jonathan Druart
on 2024-11-25 14:02:07 UTC
(
hide
)
Description:
Bug 22421: Fix KEY names
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-11-25 14:02:07 UTC
Size:
1.51 KB
patch
obsolete
>From e80246135301de18b25110b21570e1d191e069d3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 25 Nov 2024 14:51:28 +0100 >Subject: [PATCH] Bug 22421: Fix KEY names > >There is a mismatch in KEY names. >We should use the ones auto-generated by the server, not pass specific >ones. >--- > installer/data/mysql/kohastructure.sql | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 6d2354d858c..445d476b704 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -144,10 +144,10 @@ CREATE TABLE `accountlines` ( > KEY `debit_type_code` (`debit_type_code`), > KEY `itemnumber` (`itemnumber`), > KEY `branchcode` (`branchcode`), >- KEY `issue_id` (`issue_id`), >- KEY `old_issue_id` (`old_issue_id`), > KEY `manager_id` (`manager_id`), > KEY `accountlines_ibfk_registers` (`register_id`), >+ KEY `accountlines_ibfk_old_issues` (`old_issue_id`), >+ KEY `accountlines_ibfk_issues` (`issue_id`), > CONSTRAINT `accountlines_ibfk_borrowers` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, > CONSTRAINT `accountlines_ibfk_borrowers_2` FOREIGN KEY (`manager_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, > CONSTRAINT `accountlines_ibfk_branches` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE, >-- >2.34.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 22421
:
85773
|
85774
|
85775
|
90352
|
90353
|
90354
|
90359
|
90360
|
90361
|
90362
|
90365
|
90366
|
90367
|
90368
|
161919
|
161920
|
161921
|
161922
|
161923
|
162244
|
162245
|
162246
|
162247
|
162248
|
166631
|
173287
|
173288
|
173289
|
173305
|
173790
|
173791
|
173792
|
173793
|
173794
|
173795
|
173796
|
173797
|
173798
|
173799
|
174281
| 174974