Files
spsays-bff/migrations/0061_quiz_target_year.up.sql
T
2026-10-18 13:02:13 +05:30

6 lines
310 B
SQL

-- The year of a lecture or conversation a quiz is attached to, captured when
-- the quiz is saved, so the app can group quizzes by year without looking
-- each transcript up. NULL for chapters, stand-alone quizzes, and undated
-- recordings.
ALTER TABLE quizzes ADD COLUMN IF NOT EXISTS target_year SMALLINT;