Complete Phase 9 of isPracticing migration by removing all traces of the deprecated 3-state masteryLevel system: Schema changes: - Remove masteryLevel column from player_skill_mastery table - Remove MasteryLevel type export - Remove MASTERY_CONFIG constant - Remove calculateMasteryLevel function Code cleanup: - Remove masteryLevel from all insert/update operations in progress-manager - Remove getSkillsByMasteryLevel function and export - Remove masteryLevel from SkillPerformance interface - Remove masteryLevel from SkillMasteryData interface in usePlayerCurriculum - Remove deprecated dbMasteryToState and buildStudentSkillHistory functions - Remove deprecated tests for removed functions The system now uses: - isPracticing: boolean - Set by teacher via checkbox - FluencyState - Computed from practice history (practicing/effortless/fluent/rusty) - MasteryState - For cost calculation (adds not_practicing for non-practicing skills) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
6 lines
269 B
SQL
6 lines
269 B
SQL
-- Custom SQL migration file, put your code below! --
|
|
-- Drop the deprecated mastery_level column from player_skill_mastery table
|
|
-- This column has been replaced by isPracticing + computed fluency state
|
|
|
|
ALTER TABLE `player_skill_mastery` DROP COLUMN `mastery_level`;
|