[TASK] Tests: Allow NULL for optional fields in test extensions 23/42623/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 14 Aug 2015 08:16:09 +0000 (10:16 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 15 Aug 2015 11:51:25 +0000 (13:51 +0200)
commitb5cfe39876b664a474f36c220df1f96783d59dbd
treecd9a84dc8d5de6e63b26bd5fde5e110400823ce5
parentd6258b77ac2d207b5ef6758132389053c8c4fecf
[TASK] Tests: Allow NULL for optional fields in test extensions

The extensions irre_tutorial and test_datahandler extend the tt_content
table with fields which are not used by all tt_content elements. Due to
the fields being defined as NOT NULL but not having a default value this
leads to problems creating records when MySQL is running in strict mode.

This patch removes the NOT NULL restriction as BLOB/TEXT columns can not
have default values.

Resolves: #69000
Releases: master
Change-Id: Iefc7ae3b52e3b522c7ea70cfe84a927fd975fb6c
Reviewed-on: http://review.typo3.org/42623
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/ext_tables.sql
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/ext_tables.sql