Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
9f329262
Commit
9f329262
authored
Nov 26, 2018
by
Carsten Rose
Browse files
Switch off 'MySQL strict setting of default values'
parent
fb1d1e5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/sql/formEditor.sql
View file @
9f329262
#
Before
MariaDB
10
.
2
.
1
,
'text'
column
could
not
have
a
'default'
value
.
#
To
not
be
forced
to
specify
each
text
column
on
INSERT
()
statements
,
switch
off
strict
checking
:
SET
sql_mode
=
"NO_ENGINE_SUBSTITUTION"
;
CREATE
TABLE
IF
NOT
EXISTS
`Form`
(
`id`
INT
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
...
...
@@ -184,8 +188,8 @@ INSERT INTO FormElement (formId, name, label, mode, type, checkType, class, ord,
VALUES
#
Make
the
form
a
'delete form'
for
records
Form
/
FormElement
.
(
1
,
'Delete FE'
,
''
,
'show'
,
'beforeDelete'
,
'all'
,
'action'
,
10
,
0
,
0
,
''
,
''
,
''
,
''
,
'sqlAfter={{DELETE FROM FormElement WHERE formId={{id:R}} }}'
,
0
,
''
,
''
,
''
,
'none'
,
'no'
,
''
),
'sqlAfter={{DELETE FROM FormElement WHERE formId={{id:R}} }}'
,
0
,
''
,
''
,
''
,
'none'
,
'no'
,
''
),
(
1
,
'name'
,
'Name'
,
'required'
,
'text'
,
'pattern'
,
'native'
,
120
,
0
,
0
,
'<a href="{{documentation:Y}}#form-name">Info</a>'
,
''
,
''
,
''
,
'autofocus'
,
1
,
''
,
''
,
''
,
'specialchar'
,
'no'
,
'[a-zA-Z0-9._+-]+'
),
(
1
,
'title'
,
'Title'
,
'show'
,
'text'
,
'all'
,
'native'
,
130
,
0
,
0
,
'<a href="{{documentation:Y}}#form-title">Info</a>'
,
''
,
''
,
''
,
''
,
1
,
''
,
''
,
''
,
'none'
,
'no'
,
''
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment