Koha/misc/maintenance
Jonathan Druart dd88c8f710 Bug 18058: Allow borrower_message_preferences to be truncated
borrower_message_preferences cannot be truncated because of the foreign.
DBMS fails with
  "Cannot truncate a table referenced in a foreign key constraint"

To avoid that we should remove the FK check and truncate the other table
as well.

I am wondering if we really need a truncate here
  DELETE FROM borrower_message_preferences;
should do the job, but leave it as it because of the param name.

Test plan
  perl misc/maintenance/borrowers-force-messaging-defaults --doit --truncate
Should no longer raise the error message

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-03-31 10:07:03 +00:00
..
borrowers-force-messaging-defaults Bug 18058: Allow borrower_message_preferences to be truncated 2017-03-31 10:07:03 +00:00
check_sysprefs.sh
cmp_sysprefs.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
fix_accountlines_date.pl Bug 14998: Restore previous behavior 2015-11-11 11:07:27 -03:00
fix_accountlines_rmdupfines_bug8253.pl Bug 14870: (followup) Remove superfluous C4::Dates from fix_accountlines_rmdupfines_bug8253.pl 2015-11-19 13:05:06 -03:00
fix_mysql_constraints.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
make_zebra_dom_cfg_from_record_abs
process_record_through_filter.pl
remove_items_from_biblioitems.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sanitize_records.pl Bug 17196: Update POD of sanitise_records.pl 2017-01-13 13:49:28 +00:00
touch_all_biblios.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
touch_all_items.pl
UNIMARC_fix_collectiontitle.pl 3040 : seriestitle mistaken as collection title 2009-04-06 09:53:16 -05:00
UNIMARC_sync_date_created_with_marc_biblio.pl