Commit a8db294f authored by Benni Mack's avatar Benni Mack
Browse files

[TASK] Remove database field tx_ter_extensionkeys.maxstoresize

The database field "tx_ter_extensionkeys.maxstoresize"
is not in use in the whole system and not exposed, so it
can be removed from TCA and the database.
parent 22a78011
Pipeline #9051 passed with stages
in 5 minutes and 38 seconds
......@@ -62,15 +62,6 @@ return [
'eval' => 'trim',
],
],
'maxstoresize' => [
'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys.maxstoresize',
'config' => [
'type' => 'input',
'size' => '10',
'max' => '10',
'eval' => 'int',
],
],
'downloadcounter' => [
'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensions.downloadcounter',
'config' => [
......@@ -81,6 +72,6 @@ return [
],
],
'types' => [
'1' => ['showitem' => 'title,description,extensionkey,ownerusername,maxstoresize,downloadcounter'],
'1' => ['showitem' => 'title,description,extensionkey,ownerusername,downloadcounter'],
]
];
......@@ -1328,8 +1328,7 @@ class tx_ter_api
'extensionkey' => $extensionKeyData->extensionKey,
'title' => mb_strcut($extensionKeyData->title, 0, 50, 'utf-8'),
'description' => mb_strcut($extensionKeyData->description, 0, 255, 'utf-8'),
'ownerusername' => $accountData->username,
'maxstoresize' => 0
'ownerusername' => $accountData->username
];
$result = $GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_ter_extensionkeys', $extensionKeysRow);
if (!$result) {
......
......@@ -10,7 +10,6 @@ CREATE TABLE tx_ter_extensionkeys (
description text NOT NULL,
extensionkey varchar(30) DEFAULT '' NOT NULL,
ownerusername varchar(30) DEFAULT '' NOT NULL,
maxstoresize int(11) DEFAULT '0' NOT NULL,
downloadcounter int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
......
......@@ -11,7 +11,6 @@
<label index="tx_ter_extensionkeys.description">Description</label>
<label index="tx_ter_extensionkeys.extensionkey">Extension key</label>
<label index="tx_ter_extensionkeys.ownerusername">Owner username</label>
<label index="tx_ter_extensionkeys.maxstoresize">Max store size</label>
<label index="tx_ter_extensionkeys.downloadcounter">Download counter</label>
<label index="tx_ter_extensions">Extension</label>
<label index="tx_ter_extensions.extensionkey">Extension key</label>
......
Supports Markdown
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