Files
PastpaperMaster/supabase/migrations/006_make_scores_numeric.sql
Zhao 7a09167261 Initial commit: PastPaper Master full stack
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-21 12:27:47 +07:00

18 lines
456 B
SQL

-- ============================================
-- 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;