Initial commit: PastPaper Master full stack
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
supabase/migrations/006_make_scores_numeric.sql
Normal file
17
supabase/migrations/006_make_scores_numeric.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- ============================================
|
||||
-- PastPaper Master — Make score fields numeric
|
||||
-- Version: 006
|
||||
-- Date: 2026-04-10
|
||||
-- ============================================
|
||||
|
||||
ALTER TABLE paper_questions
|
||||
ALTER COLUMN score TYPE NUMERIC
|
||||
USING score::NUMERIC;
|
||||
|
||||
ALTER TABLE papers
|
||||
ALTER COLUMN total_score TYPE NUMERIC
|
||||
USING total_score::NUMERIC;
|
||||
|
||||
ALTER TABLE user_attempts
|
||||
ALTER COLUMN score_given TYPE NUMERIC
|
||||
USING score_given::NUMERIC;
|
||||
Reference in New Issue
Block a user