Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
form-creator-database
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simmctic
form-creator
form-creator-database
Commits
a58a7b31
Commit
a58a7b31
authored
5 years ago
by
Stephanie Briere Americo
Browse files
Options
Downloads
Plain Diff
Merge branch '15-adicionar-tabela-de-subform' into 'develop'
Resolve "Adicionar tabela de SubForm" Closes
#15
See merge request
!18
parents
00b31715
9b2196bb
Branches
Branches containing commit
No related tags found
1 merge request
!18
Resolve "Adicionar tabela de SubForm"
Pipeline
#22627
passed
5 years ago
Stage: test
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
workspace/create/00-core-tables.sql
+7
-0
7 additions, 0 deletions
workspace/create/00-core-tables.sql
workspace/fixture/input_answer.csv
+15
-15
15 additions, 15 deletions
workspace/fixture/input_answer.csv
workspace/fixture/sub_form.csv
+1
-0
1 addition, 0 deletions
workspace/fixture/sub_form.csv
with
23 additions
and
15 deletions
workspace/create/00-core-tables.sql
+
7
−
0
View file @
a58a7b31
...
...
@@ -37,6 +37,7 @@ CREATE TABLE input_answer (
id
SERIAL
PRIMARY
KEY
,
id_form_answer
INTEGER
,
id_input
INTEGER
,
id_sub_form
INTEGER
,
value
TEXT
,
placement
INTEGER
);
...
...
@@ -75,3 +76,9 @@ CREATE TABLE form_user (
enabled
BOOLEAN
,
forms
INTEGER
);
CREATE
TABLE
sub_form
(
id
SERIAL
PRIMARY
KEY
,
id_input
INTEGER
,
id_content_form
INTEGER
);
This diff is collapsed.
Click to expand it.
workspace/fixture/input_answer.csv
+
15
−
15
View file @
a58a7b31
id;id_form_answer;id_input;value;placement
1; 1; 6;Answer to Question 1 Form 3; 0
2; 1; 7;Answer to Question 2 Form 3; 0
3; 2; 4;Answer to Question 2 Form 2; 0
4; 2; 5;Answer to Question 1 Form 2; 0
5; 3; 1;Answer to Question 1 Form 1; 0
6; 3; 2;Answer to Question 2 Form 1; 0
7; 3; 3;Answer to Question 3 Form 1; 0
8; 4; 4;Answer to Question 2 Form 2; 0
9; 4; 5;Answer to Question 1 Form 2; 0
10; 5; 6;Answer to Question 1 Form 3; 0
11; 5; 7;Answer to Question 2 Form 3; 0
12; 6; 1;Answer to Question 1 Form 1; 0
13; 6; 2;Answer to Question 2 Form 1; 0
14; 6; 3;Answer to Question 3 Form 1; 0
id;id_form_answer;id_input;
id_sub_form;
value;placement
1; 1; 6;
;
Answer to Question 1 Form 3; 0
2; 1; 7;
;
Answer to Question 2 Form 3; 0
3; 2; 4;
;
Answer to Question 2 Form 2; 0
4; 2; 5;
;
Answer to Question 1 Form 2; 0
5; 3; 1;
;
Answer to Question 1 Form 1; 0
6; 3; 2;
;
Answer to Question 2 Form 1; 0
7; 3; 3;
;
Answer to Question 3 Form 1; 0
8; 4; 4;
;
Answer to Question 2 Form 2; 0
9; 4; 5;
;
Answer to Question 1 Form 2; 0
10; 5; 6;
;
Answer to Question 1 Form 3; 0
11; 5; 7;
;
Answer to Question 2 Form 3; 0
12; 6; 1;
;
Answer to Question 1 Form 1; 0
13; 6; 2;
;
Answer to Question 2 Form 1; 0
14; 6; 3;
;
Answer to Question 3 Form 1; 0
This diff is collapsed.
Click to expand it.
workspace/fixture/sub_form.csv
0 → 100644
+
1
−
0
View file @
a58a7b31
id;id_input;id_content_form
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment