Add more test data
This commit is contained in:
parent
c2f5773d7d
commit
584e21d5c1
|
@ -18,6 +18,16 @@ select candymat_data.change_role(
|
|||
2,
|
||||
'candymat_candidate'
|
||||
);
|
||||
select candymat_data.register_person(
|
||||
'Tricia',
|
||||
'McMillan',
|
||||
'trillian@universe.com',
|
||||
'password'
|
||||
);
|
||||
select candymat_data.change_role(
|
||||
3,
|
||||
'candymat_candidate'
|
||||
);
|
||||
select candymat_data.register_person(
|
||||
'Happy',
|
||||
'User',
|
||||
|
@ -25,6 +35,6 @@ select candymat_data.register_person(
|
|||
'password'
|
||||
);
|
||||
select candymat_data.change_role(
|
||||
3,
|
||||
4,
|
||||
'candymat_person'
|
||||
);
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
insert into candymat_data.category (title, description) values
|
||||
('Umwelt', 'Themen rund um Naturschutz usw.');
|
||||
insert into candymat_data.category (title, description) values
|
||||
('Sonstiges', '');
|
||||
|
||||
insert into candymat_data.question (category_id, text, description) values
|
||||
(1, 'Was sagen Sie zur 10H Regel?', 'In Bayern dürfen Windräder nur ...');
|
||||
insert into candymat_data.question (category_id, text, description) values
|
||||
(2, 'Umgehungsstraße XY?', 'Zur Entlastung der Hauptstraße ...');
|
||||
|
|
9
backend/sql/test_03_add_answers.sql
Normal file
9
backend/sql/test_03_add_answers.sql
Normal file
|
@ -0,0 +1,9 @@
|
|||
insert into candymat_data.answer (question_id, person_id, position, text) values
|
||||
(1, 2, 2, 'bin dagegen');
|
||||
insert into candymat_data.answer (question_id, person_id, position, text) values
|
||||
(2, 2, 0, 'bin dafür');
|
||||
|
||||
insert into candymat_data.answer (question_id, person_id, position, text) values
|
||||
(1, 3, 1, 'mir egal');
|
||||
insert into candymat_data.answer (question_id, person_id, position, text) values
|
||||
(2, 3, 3, 'keine lust mehr');
|
Loading…
Reference in a new issue