[DB] Increase max length of link fields 52/33052/2
authorLars Malach <Lars@Malach.de>
Mon, 29 Sep 2014 10:21:48 +0000 (12:21 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Tue, 30 Sep 2014 07:35:46 +0000 (09:35 +0200)
The current core supports links with the maximum length of 256 chars in
header links of tt_content elements and links in table
sys_file_reference.

External links can have much more than 256 chars.

Increasing the maximum length to 1024 should be enough - even current
browsers are supporting much more than 1024 chars.

Resolves: #61944
Releases: master, 6.2
Change-Id: I2031ebef959de696bc320b927ec1a462bcd5dd72
Reviewed-on: http://review.typo3.org/33052
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/ext_tables.sql
typo3/sysext/frontend/Configuration/TCA/tt_content.php
typo3/sysext/frontend/ext_tables.sql

index 0374783..389dfb2 100644 (file)
@@ -171,6 +171,7 @@ return array(
                        'config' => array(
                                'type' => 'input',
                                'size' => '20',
+                               'max' => 1024,
                                'wizards' => array(
                                        '_PADDING' => 2,
                                        'link' => array(
index 0bf62f6..615a9cb 100644 (file)
@@ -426,7 +426,7 @@ CREATE TABLE sys_file_reference (
        title tinytext,
        description text,
        alternative tinytext,
-       link tinytext,
+       link varchar(1024) DEFAULT '' NOT NULL,
        downloadname tinytext,
 
        PRIMARY KEY (uid),
index 9935f4a..c57751d 100644 (file)
@@ -394,8 +394,8 @@ return array(
                        'exclude' => 1,
                        'config' => array(
                                'type' => 'input',
-                               'size' => '50',
-                               'max' => '256',
+                               'size' => 50,
+                               'max' => 1024,
                                'eval' => 'trim',
                                'wizards' => array(
                                        '_PADDING' => 2,
index 860e2ba..36329c9 100644 (file)
@@ -287,7 +287,7 @@ CREATE TABLE tt_content (
        spaceBefore smallint(5) unsigned DEFAULT '0' NOT NULL,
        spaceAfter smallint(5) unsigned DEFAULT '0' NOT NULL,
        fe_group varchar(100) DEFAULT '0' NOT NULL,
-       header_link varchar(255) DEFAULT '' NOT NULL,
+       header_link varchar(1024) DEFAULT '' NOT NULL,
        imagecaption_position varchar(6) DEFAULT '' NOT NULL,
        image_link text,
        image_zoom tinyint(3) unsigned DEFAULT '0' NOT NULL,