Bugzilla – Attachment 143622 Details for
Bug 32162
erm_eholdings_packages_agreements does not have a primary key
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32162: Add primar key to erm_eholdings_packages_agreements
Bug-32162-Add-primar-key-to-ermeholdingspackagesag.patch (text/plain), 1.70 KB, created by
Jonathan Druart
on 2022-11-10 07:09:20 UTC
(
hide
)
Description:
Bug 32162: Add primar key to erm_eholdings_packages_agreements
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-11-10 07:09:20 UTC
Size:
1.70 KB
patch
obsolete
>From 52032d2f3cff2b627bcd3c7c5f6d6de4efb72f3e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 10 Nov 2022 08:06:28 +0100 >Subject: [PATCH] Bug 32162: Add primar key to > erm_eholdings_packages_agreements > >Test plan: >Confirm that this change fixes the related TestBuilder.t failure >Confirm that it does not break the eRM app, try to attach an agreement >to a package. >--- > 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 33e2980576b..317714d5713 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2977,9 +2977,9 @@ DROP TABLE IF EXISTS `erm_eholdings_packages_agreements`; > CREATE TABLE `erm_eholdings_packages_agreements` ( > `package_id` INT(11) NOT NULL COMMENT 'link to the package', > `agreement_id` INT(11) NOT NULL COMMENT 'link to the agreement', >- UNIQUE KEY `erm_eholdings_packages_agreements_uniq` (`package_id`, `agreement_id`), > CONSTRAINT `erm_eholdings_packages_agreements_ibfk_1` FOREIGN KEY (`package_id`) REFERENCES `erm_eholdings_packages` (`package_id`) ON DELETE CASCADE ON UPDATE CASCADE, >- CONSTRAINT `erm_eholdings_packages_agreements_ibfk_2` FOREIGN KEY (`agreement_id`) REFERENCES `erm_agreements` (`agreement_id`) ON DELETE CASCADE ON UPDATE CASCADE >+ CONSTRAINT `erm_eholdings_packages_agreements_ibfk_2` FOREIGN KEY (`agreement_id`) REFERENCES `erm_agreements` (`agreement_id`) ON DELETE CASCADE ON UPDATE CASCADE, >+ PRIMARY KEY(`package_id`, `agreement_id`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; > > -- >-- >2.25.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 32162
:
143622
|
143645
|
143682
|
143771