Koha-clms/installer/data/mysql
Tomas Cohen Arazi 5ded795bf5 Bug 29605: Add missing constraints from bug 15067
This patch fixes a missed update to kohastructure.sql.

To test:
1. Checkout prior to bug 15067
(ab270c026b) would work.
2.  Run:
   $ reset_all
3. Checkout v21.11.00
4. Run:
   $ updatedatabase
   $ koha-mysql kohadev
   > SHOW CREATE TABLE language_subtag_registry;
=> SUCCESS: There's UNIQUE KEY uniq_lang (subtag, type)
5. Run:
   > SHOW CREATE TABLE language_descriptions;
=>  SUCCESS: There's UNIQUE KEY uniq_desc (subtag, type, lang)
6. Run:
   > SHOW CREATE TABLE language_rfc4646_to_iso639;
=> SUCCESS: There's UNIQUE KEY uniq_code (rfc4646_subtag, iso639_2_code)
7. Replicate a fresh install. Run:
   $ reset_all
8. Repeat 4, 5 and 6
=> FAIL: The UNIQUE constraints are not there!
9. Apply this patch
10. Run:
   $ reset_all
11. Repeat 8
=> SUCCESS: The UNIQUE constraints are there!
12. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-02-07 12:31:17 -05:00
..
atomicupdate Bug 29336: DBRev 21.11.02.002 2022-02-07 06:32:04 -05:00
db_revs Bug 29336: DBRev 21.11.02.002 2022-02-07 06:32:04 -05:00
en Bug 29481: Terminology: Fix other occurrences of 'Collection code' 2022-02-07 08:13:20 -05:00
fr-FR Bug 29481: Terminology: Fix other occurrences of 'Collection code' 2022-02-07 08:13:20 -05:00
localization Bug 27622: Add stuffs to custom.sql 2021-10-07 15:49:01 +02:00
mandatory Bug 20076: (RM follow-up) Fix system preference boolean logic 2022-01-14 09:27:14 -05:00
backfill_statistics.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
kohastructure.sql Bug 29605: Add missing constraints from bug 15067 2022-02-07 12:31:17 -05:00
labels_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
patroncards_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
update22to30.pl Bug 29180: (QA follow-up) Don't alter old DB up date 2021-11-05 12:13:25 +01:00
updatedatabase.pl Bug 28263: Fix too_many auto renewal message 2021-11-02 16:50:01 +01:00