move mr
This commit is contained in:
parent
1991b74b9b
commit
7773967c71
|
@ -1,5 +1,14 @@
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
|
|
||||||
|
-- Watch out! The following field migration must be done before altering the corresponding table.
|
||||||
|
UPDATE `tevent_filter`
|
||||||
|
SET `search` = `regex`,
|
||||||
|
`regex` = '1'
|
||||||
|
WHERE `regex` IS NOT NULL AND `regex` != '';
|
||||||
|
|
||||||
|
-- Watch out! The following alter command must be done after the previous update of this table.
|
||||||
|
ALTER TABLE `tevent_filter` MODIFY COLUMN `regex` TINYINT unsigned NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `tmerge_error` (
|
CREATE TABLE IF NOT EXISTS `tmerge_error` (
|
||||||
`id` int(10) NOT NULL auto_increment,
|
`id` int(10) NOT NULL auto_increment,
|
||||||
`id_node` int(10) default 0,
|
`id_node` int(10) default 0,
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
START TRANSACTION;
|
|
||||||
|
|
||||||
-- Watch out! The following field migration must be done before altering the corresponding table.
|
|
||||||
UPDATE `tevent_filter`
|
|
||||||
SET `search` = `regex`,
|
|
||||||
`regex` = '1'
|
|
||||||
WHERE `regex` IS NOT NULL AND `regex` != '';
|
|
||||||
|
|
||||||
-- Watch out! The following alter command must be done after the previous update of this table.
|
|
||||||
ALTER TABLE `tevent_filter` MODIFY COLUMN `regex` TINYINT unsigned NOT NULL DEFAULT 0;
|
|
||||||
|
|
||||||
COMMIT;
|
|
|
@ -1185,7 +1185,7 @@ function events_get_all(
|
||||||
$comp_pattern = 'LIKE lower("%%%s%%")';
|
$comp_pattern = 'LIKE lower("%%%s%%")';
|
||||||
|
|
||||||
// Disregard repeated whitespaces in search (customer requirement).
|
// Disregard repeated whitespaces in search (customer requirement).
|
||||||
// Apply in both column stored value and search term.
|
// Conversion must be applied in both column stored value and search term.
|
||||||
$search_term = preg_replace('/( )+/', ' ', $filter['search']);
|
$search_term = preg_replace('/( )+/', ' ', $filter['search']);
|
||||||
$search_column_pattern = 'REGEXP_REPLACE(%s, "( \\s*)+", " ")';
|
$search_column_pattern = 'REGEXP_REPLACE(%s, "( \\s*)+", " ")';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue