Koha-clms/installer/data/mysql
Nick Clemens 4d239368a3
Bug 38906: Use SUBSTRING and LOCATE over REGEXP_REPLACE
To test:
1 - Check out an old version of Koha and set some columns settings for holdings tables, or:
    UPDATE columns_settings
    SET columnname = CONCAT("holdings_",columnname)
    WHERE module = 'catalogue' AND page='detail' AND tablename = "holdings_table";
    UPDATE columns_settings
    SET columnname = CONCAT("otherholdings_",columnname)
    WHERE module = 'catalogue' AND page = 'detail' AND tablename = "otherholdings_table";
2 - perl -e 'use C4::Installer; my $result = C4::Installer::run_db_rev("/kohadevbox/koha/installer/data/mysql/db_revs/240600064.pl"); warn Data::Dumper::Dumper($result)'
3 - SELECT columnname FROM columns_settings WHERE module="catalogue" AND page="detail" AND ( tablename="holdings_table" OR tablename="otherholdings_table");
4 - Confirm column names are correct
5 - repeat 2
6 - Confirm column names are not affected on subsequent runs (items_group does not become group)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c1f4e2712b)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit b71d4d3e94)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-10-10 16:29:29 +02:00
..
atomicupdate Bug 39618: DBRev 24.11.009.002 2025-10-06 17:36:22 +02:00
db_revs Bug 38906: Use SUBSTRING and LOCATE over REGEXP_REPLACE 2025-10-10 16:29:29 +02:00
en Bug 40071: MARC21 Addition to relator terms in technical notice 2025-06-04 2025-10-10 14:46:15 +02:00
localization Bug 27490: (follow-up) Fix custom installer files 2024-09-13 13:54:26 +02:00
mandatory Bug 39374: Database changes 2025-08-06 16:32:59 +02:00
backfill_statistics.pl
…
fix_unclosed_nonaccruing_fines_bug17135.pl
…
kohastructure.sql Bug 39618: (QA follow-up) add prefix length to index key 2025-10-06 17:37:22 +02: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 Bug 29180: (QA follow-up) Don't alter old DB up date 2021-11-05 12:13:25 +01:00
updatedatabase.pl Bug 38299: (follow-up) (discussion) Move failure into same level 2024-11-18 17:44:40 +01:00