From 1b5041a78308667614eda399edb5144080181257 Mon Sep 17 00:00:00 2001 From: Stefan Froemken <froemken@gmail.com> Date: Mon, 16 Jan 2023 11:45:33 +0100 Subject: [PATCH] [BUGFIX] Change column metaphone to varchar In case of activated STRICT_TRANS_TABLES, better known as strict_mode, the index_words record incl. metaphone can not be stored as a string is provided, but an int is expected. As various metaphone related methods in TYPO3 return a string we change the DB type of column metaphone to varchar. We set the length to 60 as it is the same we use in analyzeHeaderinfo(). Resolves: #99547 Releases: main, 12.4, 11.5 Change-Id: Ice4223f2169595b781ed8c3a7dd5dda3f50e8a1e Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79817 Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org> --- typo3/sysext/indexed_search/ext_tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/indexed_search/ext_tables.sql b/typo3/sysext/indexed_search/ext_tables.sql index b32accb4b354..64b839ef1017 100644 --- a/typo3/sysext/indexed_search/ext_tables.sql +++ b/typo3/sysext/indexed_search/ext_tables.sql @@ -61,7 +61,7 @@ CREATE TABLE index_rel ( CREATE TABLE index_words ( wid int(11) DEFAULT '0' NOT NULL, baseword varchar(60) DEFAULT '' NOT NULL, - metaphone int(11) DEFAULT '0' NOT NULL, + metaphone varchar(60) DEFAULT '' NOT NULL, is_stopword tinyint(3) DEFAULT '0' NOT NULL, PRIMARY KEY (wid), KEY baseword (baseword), -- GitLab