[BUGFIX] DB field names exceed max length with 'zzz_deleted'
authorTolleiv Nietsch <info@tolleiv.de>
Wed, 1 Feb 2012 08:30:40 +0000 (09:30 +0100)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 20 May 2012 10:31:26 +0000 (12:31 +0200)
commita491fb1b5cba75775500a121c265d3e171c63dfc
treeeef642a45f39c3839477e8616d6d10a7b6d5df9f
parent5f3038ba10f9cbc1cceb03298530ecf5e198de01
[BUGFIX] DB field names exceed max length with 'zzz_deleted'

MySQL allows a maximum of 64 characters for column and table names.
When prefixing them with 'zzz_deleted' this limit might be reached
by accident. (e.g. with
'zzz_deleted_tx_powermail_tellAFriendForm_receiverEmailContentField')

The patch avoids the overstepping 64 characters.

At the same time the prefixed and shortened field names are more
likely to have the same name, therefore the names are cut
from the beginning.

Change-Id: Id423a5bc0bee8509c6da89793812b1399d6a14c0
Fixes: #33580
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/8791
Reviewed-by: Oliver Klee
Reviewed-by: Xavier Perseguers
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_install_sql.php