Boost Azure Demo
This commit is contained in:
12
Backend/db/migrations/004_student_answer_workspace.sql
Normal file
12
Backend/db/migrations/004_student_answer_workspace.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- +goose Up
|
||||
ALTER TABLE student_answers
|
||||
ADD COLUMN solve_mode TEXT NOT NULL DEFAULT 'just_answer',
|
||||
ADD COLUMN working_steps TEXT,
|
||||
ADD CONSTRAINT student_answers_solve_mode_check
|
||||
CHECK (solve_mode IN ('just_answer', 'step_by_step', 'solve_together', 'handwritten'));
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE student_answers
|
||||
DROP CONSTRAINT IF EXISTS student_answers_solve_mode_check,
|
||||
DROP COLUMN IF EXISTS working_steps,
|
||||
DROP COLUMN IF EXISTS solve_mode;
|
||||
Reference in New Issue
Block a user