From 89d440b8501aec9aa679753e5b0f1abd60f2fd1a Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Thu, 7 May 2020 18:20:19 +0200 Subject: [PATCH] Fixes #10507. --- extension/Classes/Sql/formEditor.sql | 77 ++++++++++++++-------------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/extension/Classes/Sql/formEditor.sql b/extension/Classes/Sql/formEditor.sql index 02bc26bee..4707d5e81 100644 --- a/extension/Classes/Sql/formEditor.sql +++ b/extension/Classes/Sql/formEditor.sql @@ -57,45 +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', - - `enabled` ENUM ('yes', 'no') NOT NULL DEFAULT 'yes', - - `name` VARCHAR(255) NOT NULL DEFAULT '', - `label` VARCHAR(511) 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', 'gridJQW', 'text', - 'editor', 'annotate', 'time', 'note', 'password', 'radio', 'select', 'subrecord', 'upload', - 'annotate', '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, + `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', + + `name` VARCHAR(255) NOT NULL DEFAULT '', + `label` VARCHAR(511) 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', + '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, `tooltip` VARCHAR(255) NOT NULL DEFAULT '', `placeholder` VARCHAR(2048) NOT NULL DEFAULT '', -- GitLab