[TYPO3-v4] Lenght of type int fields in pages and tt_content

Dmitry Dulepov dmitry.dulepov at gmail.com
Sat Apr 16 17:33:14 CEST 2011


Hi!

Lorenz Ulrich wrote:
> pages:layout
> tt_content:layout
> tt_content:colPos
> tt_content:section_frame
>
> allow own configuration handled by TSconfig and Typoscript e.g. to have
> multiple layouts for content elements etc.
>
> On bigger sites it's hard to keep track about the already used id's. So
> I came up with the idea used for throwing exceptions - use the current
> timestamp so the probability to use one number twice is very small. But
> this is not possible because their type in the DB is tinyint(3) so the
> maximum number is 255.
>
> What do you think about the idea to have a bigger length for these
> fields? The new field backend_layout is int(10) and so its maximum is
> 2147483647 - enough for the next years :).

I do not see a connection between "pages:layout", "already used id's" and 
"use the current timestamp". Do you propose to use the timestamp for 
"pages:layout"? This field is not for that. Do not reuse it for your own 
purposes, add another field if you need.

I do not think that increasing these fields now is necessary. When we 
really ned that, we can change that. But change for the sake of "may be 
possible future application" is not what should happen.

Th is is not a -1 because I do not really understand what you tried to do 
with this.

-- 
Dmitry Dulepov
TYPO3 core&security team member
E-mail: dmitry.dulepov at typo3.org
Web: http://dmitry-dulepov.com/


More information about the TYPO3-project-v4 mailing list