Commit 67d636d6 authored by Philipp Gampe's avatar Philipp Gampe Committed by Thomas Löffler

[BUGFIX] Wrong DB column type results in full table scan

The tx_terfe2_domain_model_version.author column type should be changed
to ``int``. Altough the TCA uses the type ``inline``, the model only
stores one author in the field.

Resolves: #57557
Change-Id: Ide5ecb5540e7972e6c548ff6a95addd366c98586
Reviewed-on: https://review.typo3.org/29074
Reviewed-by: Tomas Norre Mikkelsen
Tested-by: Tomas Norre Mikkelsen
Reviewed-by: Thomas Loeffler
Tested-by: Thomas Loeffler
parent f2679dfb
......@@ -366,7 +366,7 @@
'type' => 'inline',
'foreign_table' => 'tx_terfe2_domain_model_author',
'minitems' => 1,
'maxitems' => 20
'maxitems' => 1
),
),
'extension' => array(
......@@ -420,4 +420,4 @@
),
),
);
?>
\ No newline at end of file
?>
......@@ -127,7 +127,7 @@ CREATE TABLE tx_terfe2_domain_model_version (
title tinytext,
description text,
file_hash varchar(50) DEFAULT '' NOT NULL,
author tinytext,
author int(11) DEFAULT '0' NOT NULL,
version_number int(11) DEFAULT '0' NOT NULL,
version_string tinytext,
upload_date int(11) DEFAULT '0' NOT NULL,
......@@ -181,7 +181,8 @@ CREATE TABLE tx_terfe2_domain_model_version (
l18n_diffsource mediumblob NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid)
KEY parent (pid),
KEY author (author)
);
......@@ -394,4 +395,4 @@ CREATE TABLE tx_terfe2_extension_tag_mm (
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
\ No newline at end of file
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment