Skip to content
Snippets Groups Projects
Commit d9a5730a authored by Gianfranco Harres's avatar Gianfranco Harres Committed by Lucas Fernandes de Oliveira
Browse files

Resolve "Arrumar form_updates e input_updates"

parent 4aebe291
Branches
No related tags found
No related merge requests found
...@@ -41,16 +41,21 @@ CREATE TABLE input_answer ( ...@@ -41,16 +41,21 @@ CREATE TABLE input_answer (
placement INTEGER placement INTEGER
); );
CREATE TABLE form_updates ( CREATE TABLE form_update (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
id_form INTEGER, id_form INTEGER,
update_data TEXT update_date TIMESTAMP
); );
CREATE TABLE input_updates ( CREATE TABLE input_update (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
id_form_updates INTEGER, id_form_update INTEGER,
id_input INTEGER, id_input INTEGER,
input_operation char(3), input_operation_id INTEGER,
value TEXT value TEXT
); );
CREATE TABLE input_operation (
id INTEGER,
name TEXT
);
id;id_form;update_date
id;name
0;ADD
1;REMOVE
2;SWAP
id;id_form_update;id_input;input_operation_id;value
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment