You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id integer generated always as identity primary key,
339
+
choice textnot null,
340
+
question integernot null,
341
+
constraint choice_quesiton foreign key (question) references doppelganger_questions(id) on delete cascade
342
+
);
343
+
344
+
createtabledoppelganger_answers(
345
+
id integer generated always as identity primary key,
346
+
taker integernot null,
347
+
choice integernot null,
348
+
constraint choice_answer foreign key (choice) references doppelganger_choices(id) on delete cascade,
349
+
constraint user_answer foreign key (taker) references users(id) on delete cascade
350
+
);
351
+
332
352
-- when users first edit new field in their profile, place them higher in the suggestions list if have filled 3 or more profile fields
333
353
create or replacefunctiontemporarily_place_at_top() returns trigger as
334
354
$$
@@ -724,7 +744,8 @@ values
724
744
725
745
insert into experiments (code, name, description) values
726
746
(0, 'Impersonation', 'Temporarily change your profile to a character, famous person or historical figure so you can chat as if it was the same person typing it'),
727
-
(10, 'Word chain', 'Play Word Chain with other users');
747
+
(10, 'Word chain', 'Play Word Chain with other users'),
748
+
(20, 'Doppelganger', 'Answer 9 questions and find out if anyone matches you');
728
749
729
750
insert into stock_text (contents, text_type) values
730
751
('I stayed up all night wondering where the sun went, then it dawned on me', 0),
0 commit comments