- Repository has been cleaned up from ~450 files to ~90 files (production ready)
- Database has OLD tables with data and NEW enhanced tables without data
- Table structures are DIFFERENT - cannot do simple data copy
- Need to migrate data preserving relationships and enhancing structure
-
course_prereqs- Structure:
course_id, prereq_course_id(simple mapping) - Has prerequisite relationship data
- Structure:
-
courses_with_lp(likely a VIEW)- Has Learning Perspective assignments for courses
- Structure unknown - needs inspection
-
course_prerequisites- Enhanced structure:
id, course_id, prerequisite_course_id, is_required, prerequisite_type, notes, created_at, updated_at
- Enhanced structure:
-
course_learning_perspectives- Junction table:
id, course_id, learning_perspective_code, is_primary, fulfillment_strength, notes, created_at, updated_at
- Junction table:
lp_requirements- no data in either old or new
-- Check exact structure of old tables
SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'course_prereqs';
SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'courses_with_lp';- Map old
course_prereqscolumns to newcourse_prerequisitesenhanced structure - Map old
courses_with_lpcolumns to newcourse_learning_perspectivesjunction table - Handle data type conversions and default values
- Migrate data with proper structure mapping
- Verify record counts match
- Test that application code works with new tables
- Delete old tables:
course_prereqs,courses_with_lp,lp_requirements - Add optimized indexes
Convert from old simple tables to new enhanced relational structure while preserving all existing course and prerequisite data.
- β Code updated to use new table names
- β Repository cleaned up (production ready)
- β New database schema created
- β³ NEED: Data migration from old to new tables
- β³ THEN: Import 83 scraped course programs