Skip to content
GitLab
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
7c669a3d
Commit
7c669a3d
authored
Sep 05, 2020
by
Carsten Rose
Browse files
Refs #11118 : Add table structure to formEditor.sql and DatabaseUpdateData.php.
parent
e1f10e56
Pipeline
#3767
failed with stages
in 2 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Database/DatabaseUpdateData.php
View file @
7c669a3d
...
...
@@ -194,7 +194,9 @@ $UPDATE_ARRAY = array(
"ALTER TABLE `FormElement` CHANGE `label` `label` VARCHAR(1023) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"
,
],
'20.9.0'
=>
[
"CREATE TABLE `Uniq` (`id` int(11) NOT NULL AUTO_INCREMENT, `random` char(32) NOT NULL, `expire` datetime NOT NULL, `modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `random` (`random`) USING BTREE, KEY `expire` (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;);"
,
],
);
...
...
extension/Classes/Sql/formEditor.sql
View file @
7c669a3d
...
...
@@ -57,44 +57,44 @@ CREATE TABLE IF NOT EXISTS `Form`
CREATE
TABLE
IF
NOT
EXISTS
`FormElement`
(
`id`
INT
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`formId`
INT
(
11
)
NOT
NULL
,
`feIdContainer`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`dynamicUpdate`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'no'
,
`id`
INT
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`formId`
INT
(
11
)
NOT
NULL
,
`feIdContainer`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`dynamicUpdate`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'no'
,
`enabled`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'yes'
,
`enabled`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'yes'
,
`name`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`label`
VARCHAR
(
1023
)
NOT
NULL
DEFAULT
''
,
`name`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`label`
VARCHAR
(
1023
)
NOT
NULL
DEFAULT
''
,
`mode`
ENUM
(
'show'
,
'required'
,
'readonly'
,
'hidden'
)
NOT
NULL
DEFAULT
'show'
,
`modeSql`
TEXT
NOT
NULL
,
`class`
ENUM
(
'native'
,
'action'
,
'container'
)
NOT
NULL
DEFAULT
'native'
,
`type`
ENUM
(
'checkbox'
,
'date'
,
'datetime'
,
'dateJQW'
,
'datetimeJQW'
,
'extra'
,
`mode`
ENUM
(
'show'
,
'required'
,
'readonly'
,
'hidden'
)
NOT
NULL
DEFAULT
'show'
,
`modeSql`
TEXT
NOT
NULL
,
`class`
ENUM
(
'native'
,
'action'
,
'container'
)
NOT
NULL
DEFAULT
'native'
,
`type`
ENUM
(
'checkbox'
,
'date'
,
'datetime'
,
'dateJQW'
,
'datetimeJQW'
,
'extra'
,
'gridJQW'
,
'text'
,
'editor'
,
'annotate'
,
'time'
,
'note'
,
'password'
,
'radio'
,
'select'
,
'subrecord'
,
'upload'
,
'imageCut'
,
'fieldset'
,
'pill'
,
'templateGroup'
,
'beforeLoad'
,
'beforeSave'
,
'beforeInsert'
,
'beforeUpdate'
,
'beforeDelete'
,
'afterLoad'
,
'afterSave'
,
'afterInsert'
,
'afterUpdate'
,
'afterDelete'
,
'sendMail'
,
'paste'
)
NOT
NULL
DEFAULT
'text'
,
`subrecordOption`
SET
(
'edit'
,
'delete'
,
'new'
)
NOT
NULL
DEFAULT
''
,
`encode`
ENUM
(
'none'
,
'specialchar'
)
NOT
NULL
DEFAULT
'specialchar'
,
`checkType`
ENUM
(
'auto'
,
'alnumx'
,
'digit'
,
'numerical'
,
'email'
,
'pattern'
,
'allbut'
,
'all'
)
NOT
NULL
DEFAULT
'auto'
,
`checkPattern`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`onChange`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`ord`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`tabindex`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`size`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`maxLength`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`labelAlign`
ENUM
(
'default'
,
'left'
,
'center'
,
'right'
)
NOT
NULL
DEFAULT
'default'
,
`bsLabelColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsInputColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsNoteColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`rowLabelInputNote`
SET
(
'row'
,
'label'
,
'/label'
,
'input'
,
'/input'
,
'note'
,
'/note'
,
'/row'
)
NOT
NULL
DEFAULT
'row,label,/label,input,/input,note,/note,/row'
,
`note`
TEXT
NOT
NULL
,
`adminNote`
TEXT
NOT
NULL
,
'afterInsert'
,
'afterUpdate'
,
'afterDelete'
,
'sendMail'
,
'paste'
)
NOT
NULL
DEFAULT
'text'
,
`subrecordOption`
SET
(
'edit'
,
'delete'
,
'new'
)
NOT
NULL
DEFAULT
''
,
`encode`
ENUM
(
'none'
,
'specialchar'
)
NOT
NULL
DEFAULT
'specialchar'
,
`checkType`
ENUM
(
'auto'
,
'alnumx'
,
'digit'
,
'numerical'
,
'email'
,
'pattern'
,
'allbut'
,
'all'
)
NOT
NULL
DEFAULT
'auto'
,
`checkPattern`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`onChange`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`ord`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`tabindex`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`size`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`maxLength`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`labelAlign`
ENUM
(
'default'
,
'left'
,
'center'
,
'right'
)
NOT
NULL
DEFAULT
'default'
,
`bsLabelColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsInputColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsNoteColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`rowLabelInputNote`
SET
(
'row'
,
'label'
,
'/label'
,
'input'
,
'/input'
,
'note'
,
'/note'
,
'/row'
)
NOT
NULL
DEFAULT
'row,label,/label,input,/input,note,/note,/row'
,
`note`
TEXT
NOT
NULL
,
`adminNote`
TEXT
NOT
NULL
,
`tooltip`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`placeholder`
VARCHAR
(
2048
)
NOT
NULL
DEFAULT
''
,
...
...
@@ -679,4 +679,18 @@ CREATE TABLE IF NOT EXISTS `Setting`
KEY
`name`
(
`name`
),
KEY
`typeFeUserUidTableIdPublic`
(
`type`
,
`feUser`
,
`tableId`
,
`public`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
\ No newline at end of file
DEFAULT
CHARSET
=
utf8mb4
;
CREATE
TABLE
`Uniq`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`random`
char
(
32
)
NOT
NULL
,
`expire`
datetime
NOT
NULL
,
`modified`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`created`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`random`
(
`random`
)
USING
BTREE
,
KEY
`expire`
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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