Koha/installer
Jonathan Druart 9287585f38
Bug 21901: Add FK on subscription and serial tables
In order to improve performance in the serial modules and add DB constraints,
this patch is going to add missing foreign key on the following columns:
 * serial.biblionumber
 * serial.subscription
 * subscriptionhistory.biblionumber
 * subscriptionhistory.subscriptionid
 * subscription.biblionumber

Once done, some code can be removed from the Del* subroutines, as the ON
CASCASE clause will make the RDBMS handles the deletions.

Test plan:
0/ It would be useful to test the update DB entry on a big and old
production DB, to make sure the constraints will be added correctly.
We could remove the entries before creating the constraints, but it can
be unecessary
1/ Make sure you can recreate a fresh install with the kohastructure.sql
from this patch
2/ Make sure you can upgrade from a master install
3/ Create a subscription, serial, etc. and delete the biblio
=> The subscription/serials should have been deleted from the DB
4/ Create a subscription, serial, etc. and delete the subscription
=> The serials should have been deleted from the DB

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-17 09:39:00 +01:00
..
data/mysql Bug 21901: Add FK on subscription and serial tables 2020-04-17 09:39:00 +01:00
externalmodules.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
html-template-to-template-toolkit.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
install.pl Bug 24131: (QA follow-up) Formatting in web client 2020-03-24 10:42:24 +00:00
onboarding.pl Bug 22655: Adding holds rules to Onboarding tool 2020-02-21 16:01:57 +00:00