Skip to content

Commit

Permalink
Change type of field "value" in table #_fields_values from text to me…
Browse files Browse the repository at this point in the history
…diumtext for MySQL ONLY. PostgreSQL have only text field type with unlimited length. Pull Request for Issue joomla#36065 and remake a PR joomla#42605 for Joomla 5.1.0 (joomla#42606)
  • Loading branch information
sergeytolkachyov authored Jan 26, 2024
1 parent b67dc34 commit 1b2b0c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `#__fields_values` MODIFY `value` MEDIUMTEXT;
2 changes: 1 addition & 1 deletion installation/sql/mysql/supports.sql
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ CREATE TABLE IF NOT EXISTS `#__fields_groups` (
CREATE TABLE IF NOT EXISTS `#__fields_values` (
`field_id` int unsigned NOT NULL,
`item_id` varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.',
`value` text,
`value` mediumtext,
KEY `idx_field_id` (`field_id`),
KEY `idx_item_id` (`item_id`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
Expand Down

0 comments on commit 1b2b0c1

Please sign in to comment.