Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
d58f5d5d
Commit
d58f5d5d
authored
Sep 09, 2019
by
Carsten Rose
Browse files
Refs #4434: auto update run's on QFQ 19.9.0
parent
21dedc21
Pipeline
#2345
passed with stages
in 2 minutes and 51 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Classes/Core/Database/DatabaseUpdate.php
View file @
d58f5d5d
...
...
@@ -134,7 +134,7 @@ class DatabaseUpdate {
$versionInfo
=
$this
->
getDatabaseVersion
();
$old
=
$versionInfo
[
QFQ_VERSION_KEY
]
??
false
;
if
(
version_compare
(
$old
,
'19.9.
9
'
)
===
-
1
)
{
#TODO: change version number before new release! (replace 19.9.9 with the version of the new release)
if
(
version_compare
(
$old
,
'19.9.
0
'
)
===
-
1
)
{
$this
->
updateSpecialColumns
();
}
...
...
@@ -172,15 +172,18 @@ class DatabaseUpdate {
* @throws \UserFormException
*/
private
function
updateSpecialColumns
()
{
// Prepare regex patterns to find "AS <special column name>"
$special_columns
=
[
'link'
,
'exec'
,
'Page'
,
'Pagec'
,
'Paged'
,
'Pagee'
,
'Pageh'
,
'Pagei'
,
'Pagen'
,
'Pages'
,
'page'
,
'pagec'
,
'paged'
,
'pagee'
,
'pageh'
,
'pagei'
,
'pagen'
,
'pages'
,
'yank'
,
'Pdf'
,
'File'
,
'Zip'
,
'pdf'
,
'file'
,
'zip'
,
'excel'
,
'savePdf'
,
'thumbnail'
,
'monitor'
,
'mimeType'
,
'fileSize'
,
'nl2br'
,
'htmlentities'
,
'striptags'
,
'XLS'
,
'XLSs'
,
'XLSb'
,
'XLSn'
,
'bullet'
,
'check'
,
'img'
,
'mailto'
,
'sendmail'
,
'vertical'
];
$make_pattern
=
function
(
$column
)
{
return
'/([aA][sS]\s+)('
.
$column
.
')/s'
;
};
$patterns
=
array_map
(
$make_pattern
,
$special_columns
);
// Prepare search and replace
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment