Skip to content
Snippets Groups Projects
Commit 40216df8 authored by Carsten  Rose's avatar Carsten Rose
Browse files

DatabaseUpdateData.php: remove 'CREATE TABLE ...' cause it does not work here...

DatabaseUpdateData.php: remove 'CREATE TABLE ...' cause it does not work here and it's not necessary - it will be played via formEditor.sql.
formEditor.sql: Added forwardPage to page 'copyForm'
parent 4c6166d5
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,6 @@ $UPDATE_ARRAY = array(
],
'0.18.3' => [
"CREATE TABLE IF NOT EXISTS `Clipboard` (`id` INT(11) NOT NULL AUTO_INCREMENT, `cookie` VARCHAR(255) NOT NULL DEFAULT '', `formIdPaste` INT(11) NOT NULL DEFAULT '0', `idSrc` INT(11) NOT NULL DEFAULT '0', `xId` INT(11) NOT NULL DEFAULT '0', `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`)) ENGINE = InnoDB DEFAULT CHARSET = utf8 AUTO_INCREMENT = 0;",
"ALTER TABLE `FormElement` CHANGE `type` `type` ENUM( 'checkbox', 'date', 'datetime', 'dateJQW', 'datetimeJQW', 'extra', 'gridJQW', 'text', 'editor', 'time', 'note', 'password', 'radio', 'select', 'subrecord', 'upload', 'fieldset', 'pill', 'templateGroup', 'beforeLoad', 'beforeSave', 'beforeInsert', 'beforeUpdate', 'beforeDelete', 'afterLoad', 'afterSave', 'afterInsert', 'afterUpdate', 'afterDelete', 'sendMail', 'paste' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'text';",
"ALTER TABLE `Form` CHANGE `forwardMode` `forwardMode` ENUM( 'client', 'no', 'url', 'url-skip-history', 'url-sip' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'client';",
],
......
......@@ -329,8 +329,8 @@ CREATE TABLE IF NOT EXISTS `Clipboard` (
AUTO_INCREMENT = 0;
# Form: CopyForm
INSERT INTO Form (id, name, title, tableName, showButton)
VALUES (3, 'copyForm', 'Copy a form', 'Clipboard', 'close,save');
INSERT INTO Form (id, name, title, tableName, showButton, forwardPage)
VALUES (3, 'copyForm', 'Copy a form', 'Clipboard', 'close,save', '?id={{pageId:T}}&form=form&r={{formId:P0}}');
# FormElements: CopyForm
INSERT INTO FormElement (formId, name, label, type, class, ord, sql1, parameter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment