Koha/installer/data/mysql
Katrin Fischer bea91f15ef Bug 30451: Update FK constraint on aqorders.subscriptionid
This updates the FK constrant from ON DELETE CASCADE to ON DELETE
SET NULL. This means that if a subscription linked to an order is
deleted, we no longer will also delete the order, but we will just
set subscrptinid in the order to NULL. This will avoid data loss
that can cause the budgets/funds not to add up anymore with the
real espenses of the library.

To test:

Preparation:
* Create 2 subscriptions on different records
* Create a new basket
* Use the "order from subscription" functionality to create order
  lines for both of your subscriptions
* Close basket

Without patch:
* Delete the first subscription
* Verify the order line for this subscription is gone from your basket

Apply patch:
* Run database update and restart_all
* Delete the second subscription
* Verify the order line now remained in the basket

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>

JD amended patch: perl tidy

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 765d3d85b5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 43c55cad8a)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-08-18 14:19:49 +00:00
..
atomicupdate Bug 30451: Update FK constraint on aqorders.subscriptionid 2023-08-18 14:19:49 +00:00
db_revs Bug 33028: DBRev 22.11.08.001 2023-08-17 15:59:23 +00:00
en Bug 34332: Removed extra parenthesis that was causing an error 2023-08-18 11:42:29 +00:00
localization
mandatory Bug 33117: (follow-up) Rename preference 2023-07-18 11:15:45 +00:00
backfill_statistics.pl
fix_unclosed_nonaccruing_fines_bug17135.pl
kohastructure.sql Bug 30451: Update FK constraint on aqorders.subscriptionid 2023-08-18 14:19:49 +00:00
labels_upgrade.pl
patroncards_upgrade.pl
update22to30.pl
updatedatabase.pl Bug 33720: Update the updatedatabase.pl script to flush caches before running 2023-07-18 13:00:03 +00:00