Commit f59b6ca4 authored by Carsten  Rose's avatar Carsten Rose
Browse files

formEditor.sql: fixed problem while playing SQL query - deleting old...

formEditor.sql: fixed problem while playing SQL query - deleting old FormElemnts of Formeditor deletes also other Formeelements.
parent 216e1a77
...@@ -121,7 +121,7 @@ CREATE TABLE IF NOT EXISTS `FormElement` ( ...@@ -121,7 +121,7 @@ CREATE TABLE IF NOT EXISTS `FormElement` (
# Delete previous FormElements (if exist) # Delete previous FormElements (if exist)
DELETE FormElement FROM FormElement, Form DELETE FormElement FROM FormElement, Form
WHERE Form.name LIKE 'form' OR Form.name LIKE 'formElement' AND Form.id = FormElement.formId; WHERE (Form.name LIKE 'form' OR Form.name LIKE 'formElement') AND Form.id = FormElement.formId;
# Delete previous Forms (if exist) # Delete previous Forms (if exist)
DELETE FROM Form DELETE FROM Form
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment