Files
openccb/services/lms-service/migrations/20260122000000_fix_user_grades_updated_at.sql
T
2026-01-22 16:52:36 -03:00

5 lines
204 B
SQL

-- Migration: Add updated_at to user_grades
-- Required by fn_upsert_user_grade matching CMS-style upserts
ALTER TABLE user_grades ADD COLUMN IF NOT EXISTS updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW();