Create a JSON string for the "special"
key of the #__content_types
table's table
field that uses longer names for the dbtable
or key
than the JSON used in default installation, or includes configuration options.
That the database update won't error
Database errors, as the field is defined as VARCHAR(255)
on MySQL
MySQL database, Joomla! 3.8.10
The largest current entry for the table
field is for Newsfeeds (type_alias com_newsfeeds.newsfeed
), at 227 characters. The field is created as VARCHAR(255)
. I am using a prefixed surrogate key (so longer than just id
) and my component table is namespaced (e.g. #__vendor_tablename
), and together they exceed the 255 character limit.
Also, I notice that there are "config":"array()"
keys in the JSON. One configuration option in com_contenthistory is ignore_request
, set to a default of true. Any configuration options used would likely push the string length over the 255 character limit.
I'd submit a PR, but don't have a good feel for what the field size should be.
Labels |
Added:
?
|
Category | ⇒ | Feature Request SQL |
Status | New | ⇒ | Information Required |
can be doubled declaring as VARCHAR(512)
@calligraphic any Comment on Comment by @alikon?
Title |
|
Hi @franz-wohlkoenig franz, sorry to lose track of this issue. I've been working around the issue with this DDL statement in my install SQL:
ALTER TABLE `#__content_types` MODIFY `table` VARCHAR(2048);
I think a wider column than what @alikon suggested might be a good idea. It's not an indexed field so there's no performance impact.
thanks for Comment @calligraphic. Is this Discussion #19618 similar to your Issue?
@franz-wohlkoenig no thats very different and this one is a legitimate reason for slightly increasing the size
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-21 13:14:32 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/21395
@franz-wohlkoenig Thank you. My first Joomla! PR :)
@calligraphic congratulations to your first PR :-)
can a more experienced User comment this Issue as its open since more than a Week having Status "New"?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21395.