mathly / supabase /migrations /20261104230000_math_ai_requests_code.sql
3v324v23's picture
Add end-to-end tests for worksheets functionality with Playwright
8fb90d0
Raw History Blame Contribute Delete
364 Bytes
-- A quiz hand-in's 4-digit code (app/answer_routes.py): the same number on every request of one sitting, shown to the
-- student and on the teacher's AI queue, so the two can talk about the same hand-in. Additive; empty for other requests.
begin;
alter table public.math_ai_requests add column code text not null default '' check (code ~ '^[0-9]{0,4}$');
commit;