[BUGFIX] DB field names exceed max length with 'zzz_deleted'
authorTolleiv Nietsch <info@tolleiv.de>
Sun, 20 May 2012 12:42:47 +0000 (14:42 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 May 2012 13:34:50 +0000 (15:34 +0200)
commitd797ceb41bff0ce5604e71e0986eb337235b007c
tree1ebc0e3f4131f4b40851a865f72591f20805d1c0
parent1125e3dd0de9ac6d626a05ced701904b2b56a97e
[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: I7e377e9fe26894b1c6e6b80b1b787e88b5df6087
Fixes: #33580
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/11330
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_install.php