[TASK] Increase field name of table sys_file_storage 81/59581/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 30 Jan 2019 07:12:44 +0000 (08:12 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 30 Jan 2019 10:34:47 +0000 (11:34 +0100)
Increase the length of the field from 30 to 255 chars to be in
sync with other tables, e.g. sys_file_mounts. 30 is fairly short
for bigger sites and lots of storages.

As this is an admin only field and not too often used, it is ok to backport
that to 9.5 as well.

Resolves: #87576
Releases: master, 9.5
Change-Id: I355b6295a9f813e72e1e66e05dd93419fd2aeaeb
Reviewed-on: https://review.typo3.org/59581
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Configuration/TCA/sys_file_storage.php
typo3/sysext/core/ext_tables.sql

index c5aa724..cde0c5e 100644 (file)
@@ -25,7 +25,8 @@ return [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.name',
             'config' => [
                 'type' => 'input',
-                'size' => 30,
+                'size' => 50,
+                'max' => 255,
                 'eval' => 'required'
             ]
         ],
index 6841e7a..dd7dcf9 100644 (file)
@@ -170,7 +170,7 @@ CREATE TABLE sys_filemounts (
 # Table structure for table 'sys_file_storage'
 #
 CREATE TABLE sys_file_storage (
-       name varchar(30) DEFAULT '' NOT NULL,
+       name varchar(255) DEFAULT '' NOT NULL,
        driver tinytext,
        configuration text,
        is_default tinyint(4) DEFAULT '0' NOT NULL,