Katrin Fischer
bea91f15ef
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 |
||
---|---|---|
.. | ||
atomicupdate | ||
db_revs | ||
en | ||
localization | ||
mandatory | ||
backfill_statistics.pl | ||
fix_unclosed_nonaccruing_fines_bug17135.pl | ||
kohastructure.sql | ||
labels_upgrade.pl | ||
patroncards_upgrade.pl | ||
update22to30.pl | ||
updatedatabase.pl |