Koha-clms/installer/data/mysql
Jonathan Druart d0d628c611 Bug 17234: Need to separate KEY and FOREIGN KEY checks
In the previous patch we use the constraint_exists subroutine to verify
if an index or a foreign key exists.
But the `SHOW INDEX` query does not return foreign keys (as its name
suggests!).
We need another subroutine foreign_key_exists to check the FK existence.

I have found that because t/db_dependent/TestBuilder.t fails on
oai_sets_biblios, because oai_sets_biblios_ibfk_1 has not been removed.

Test plan:
0/ Do not apply this patch
1/ Use a 3.20 DB
2/ update the DB
3/ SHOW CREATE TABLE oai_sets_biblios
will display oai_sets_biblios_ibfk_1

Apply the patch and repeat 1, 2, 3
=> Will not display oai_sets_biblios_ibfk_1
It has been removed as expected.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 05fdd855c8)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit ba45608b0d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2017-01-19 16:36:53 +01:00
..
atomicupdate Bug 17391: Update DB rev (3.22.12.003) 2016-11-30 14:43:03 +01:00
de-DE Bug 16554: rewrite mandatory and sample data - de-DE 2016-09-16 11:53:32 +02:00
en Bug 17357: Replace WTHDRAWN with WITHDRAWN in installer files 2016-10-24 11:49:34 +02:00
es-ES Bug 17357: Replace WTHDRAWN with WITHDRAWN in installer files 2016-10-24 11:49:34 +02:00
fr-FR Bug 16554: Fix fr-FR sample files 2016-09-16 11:24:58 +02:00
it-IT Bug 16554: rewrite mandatory and sample data - it-IT 2016-09-16 11:53:32 +02:00
mandatory Bug 17518: Displayed language name for Czech is wrong 2016-11-08 11:32:21 +01:00
nb-NO Bug 16554: More i18n changes - en, es, nb and pl files 2016-09-16 11:53:32 +02:00
pl-PL Bug 17357: Replace WTHDRAWN with WITHDRAWN in installer files 2016-10-24 11:49:34 +02:00
ru-RU Bug 17357: Replace WTHDRAWN with WITHDRAWN in installer files 2016-10-24 11:49:34 +02:00
uk-UA Bug 17357: Replace WTHDRAWN with WITHDRAWN in installer files 2016-10-24 11:49:34 +02:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 16573: fix structure and sample data for MySQL 5.7 2016-08-17 14:04:49 +02:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 17391: Fix number of values in sysprefs.sql 2016-11-30 14:40:34 +01:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 17234: Need to separate KEY and FOREIGN KEY checks 2017-01-19 16:36:53 +01:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 11569: Correcting typos in userpermissions.sql 2016-02-01 17:52:26 +01:00