LP1845240 Update survey answer sequence after explicit inserts
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Oct 2019 20:32:31 +0000 (16:32 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 14 Oct 2019 22:02:16 +0000 (18:02 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/tests/datasets/sql/surveys.sql

index f45de8d..d1d565b 100644 (file)
@@ -26,6 +26,9 @@ INSERT INTO action.survey_answer (id, question, answer) VALUES (16, 3, 'Redshirt
 INSERT INTO action.survey_answer (id, question, answer) VALUES (17, 3, 'TARDIS blue.');
 INSERT INTO action.survey_answer (id, question, answer) VALUES (18, 3, 'This is getting too silly - I quit.');
 
+-- bump up a bit in case we add new answers above and forget to change this.
+SELECT SETVAL('action.survey_answer_id_seq'::TEXT, 100);
+
 /** for every user with an id not evenly divisible by 6, 
  *  add a randomized response for every question in the survey
  */