From 87af9d6d7bfddc531d0a07541b0274d84cc07c11 Mon Sep 17 00:00:00 2001 From: Morton Jonuschat <m.jonuschat@mojocode.de> Date: Mon, 20 Jul 2015 20:30:41 +0200 Subject: [PATCH] [BUGFIX] Provide default value for field tt_content.filelink_sorting Changing the field type for filelink_sorting to a text type that supports a default value allows inserts into tt_content to succeed when no sorting option was provided, fixing problems with MySQL strict mode. Resolves: #67186 Resolves: #52206 Releases: master Change-Id: Ie9a06fff14ec62c9cbc8d15cc957f5fcbe698393 Reviewed-on: http://review.typo3.org/41756 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Daniel Goerz <ervaude@gmail.com> Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> --- typo3/sysext/frontend/ext_tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/ext_tables.sql b/typo3/sysext/frontend/ext_tables.sql index bd1efdf146ac..4ad76027aa6d 100644 --- a/typo3/sysext/frontend/ext_tables.sql +++ b/typo3/sysext/frontend/ext_tables.sql @@ -283,7 +283,7 @@ CREATE TABLE tt_content ( linkToTop tinyint(3) unsigned DEFAULT '0' NOT NULL, file_collections text, filelink_size tinyint(3) unsigned DEFAULT '0' NOT NULL, - filelink_sorting tinytext NOT NULL, + filelink_sorting varchar(10) DEFAULT '' NOT NULL, target varchar(30) DEFAULT '' NOT NULL, date int(10) unsigned DEFAULT '0' NOT NULL, recursive tinyint(3) unsigned DEFAULT '0' NOT NULL, -- GitLab