initial commit
This commit is contained in:
commit
6ffc0d2c99
54 changed files with 11900 additions and 0 deletions
13
backend/migrations/00004_question_reference_answer.sql
Normal file
13
backend/migrations/00004_question_reference_answer.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- +goose Up
|
||||
ALTER TABLE questions
|
||||
ADD COLUMN reference_answer TEXT NOT NULL DEFAULT '';
|
||||
|
||||
UPDATE questions
|
||||
SET reference_answer = CASE
|
||||
WHEN type = 'open' THEN 'Use context cancellation, stop accepting work, drain active requests, and close dependencies within a deadline.'
|
||||
WHEN type = 'code_review' THEN 'Identify unstable dependencies or state updates that cause avoidable renders and propose memoization only where measured.'
|
||||
ELSE reference_answer
|
||||
END;
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE questions DROP COLUMN reference_answer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue