From 05f91848b338a023854e17751bcf2a4d42f592c1 Mon Sep 17 00:00:00 2001
From: gsh18 <gsh18@inf.ufpr.br>
Date: Fri, 28 Jun 2019 10:11:23 -0300
Subject: [PATCH] Resolve "Criar tabela form_updates e input_updates"

---
 workspace/create/00-core-tables.sql | 14 ++++++++++++++
 workspace/fixture/form_updates.csv  |  0
 workspace/fixture/input_updates.csv |  0
 3 files changed, 14 insertions(+)
 create mode 100644 workspace/fixture/form_updates.csv
 create mode 100644 workspace/fixture/input_updates.csv

diff --git a/workspace/create/00-core-tables.sql b/workspace/create/00-core-tables.sql
index fa678fc..d804ffb 100644
--- a/workspace/create/00-core-tables.sql
+++ b/workspace/create/00-core-tables.sql
@@ -39,3 +39,17 @@ CREATE TABLE input_answer (
     value TEXT,
     placement INTEGER
 );
+
+CREATE TABLE form_updates (
+    id SERIAL PRIMARY KEY,
+    id_form INTEGER,
+    update_data TEXT
+);
+
+CREATE TABLE input_updates (
+    id SERIAL PRIMARY KEY,
+    id_form_updates INTEGER,
+    id_input INTEGER,
+    input_operation char(3),
+    value TEXT
+);
diff --git a/workspace/fixture/form_updates.csv b/workspace/fixture/form_updates.csv
new file mode 100644
index 0000000..e69de29
diff --git a/workspace/fixture/input_updates.csv b/workspace/fixture/input_updates.csv
new file mode 100644
index 0000000..e69de29
-- 
GitLab