Koha-clms/installer/data/mysql
Tomas Cohen Arazi 9def7d040c
Bug 37292: Add an index on oauth_access_tokens.expires
This patch adds a needed index to the column.

To test:
1. On a fresh KTD, run:
   $ ktd --shell
  k$ koha-mysql kohadev
   > SHOW CREATE TABLE oauth_access_tokens;
=> FAIL: There's no 'KEY' entry for the `expires` column
2. Apply this patch
3. Run:
  k$ updatedatabase
=> SUCCESS: A message tells the index was added
4. Repeat 1
=> SUCCESS: The index was actually added to the DB
5. Run:
  k$ reset_all
6. Repeat 1
=> SUCCESS: The index is created at install time too!
7. Run:
  k$ updatedatabase
=> SUCCESS: Nothing explodes, no message about index being created
8. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2e63ece6ae)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2024-12-10 15:25:41 +01:00
..
atomicupdate Bug 37292: Add an index on oauth_access_tokens.expires 2024-12-10 15:25:41 +01:00
db_revs Koha 24.11 is here! 2024-11-25 20:38:56 +01:00
en Bug 35659: (QA follow-up) Fix capitalisation in notice 2024-10-28 14:01:35 +01:00
localization Bug 27490: (follow-up) Fix custom installer files 2024-09-13 13:54:26 +02:00
mandatory Bug 34355: (QA follow-up) Add permission marc_order_manage to govern control of account creation 2024-11-11 17:43:15 +01:00
backfill_statistics.pl
…
fix_unclosed_nonaccruing_fines_bug17135.pl
…
kohastructure.sql Bug 37292: Add an index on oauth_access_tokens.expires 2024-12-10 15:25:41 +01:00
labels_upgrade.pl
…
needs_update.pl Bug 34088: Move the 'needs update' test to a separate script 2024-09-17 10:48:39 +02:00
patroncards_upgrade.pl
…
update22to30.pl
…
updatedatabase.pl Bug 38299: (follow-up) (discussion) Move failure into same level 2024-11-18 17:44:40 +01:00