Skip to main content

Module migrate_cmd

Module migrate_cmd 

Source
Expand description

Database migration command implementation

Handles migrations from schema v1-v5 to v6:

  • v2: magellan_meta table
  • v4: BLAKE3-based SymbolId (additive fields)
  • v5: AST nodes table for hierarchy storage
  • v6: AST nodes file_id column for per-file tracking

Structs§

MigrationResult
Migration result summary

Constants§

MAGELLAN_SCHEMA_VERSION
Current Magellan schema version v4: BLAKE3-based SymbolId, canonical_fqn, display_fqn v5: AST nodes table for hierarchy storage v6: AST nodes file_id column for per-file tracking v7: CFG blocks table for control flow graph storage v8: cfg_blocks.cfg_hash column for cache invalidation v9: cfg_blocks.statements column for AST snippets v10: reserved migration slot (legacy 4D CFG columns removed from new schema) v11: (removed — geo_index_meta table no longer created) v12: FTS5 full-text search index v12: symbol_fts FTS5 virtual table for fast symbol search v13: source_documents table for graph memory source inventory v14: candidate_facts table for graph memory candidate staging v15: magellan_meta.project_name and project_metadata columns v16: cfg_blocks.cfg_condition column for feature-gated blocks v17: telemetry_events table for performance telemetry v18: repository snapshot tables for temporal tracking v19: symbol scoring tables for candidate ranking

Functions§

run_migrate
Run database migration