-- Migration 000: Schema migrations tracking table -- Applied as a bootstrap step before the normal migration loop. CREATE TABLE IF NOT EXISTS schema_migrations ( version TEXT PRIMARY KEY, applied_at DATETIME DEFAULT CURRENT_TIMESTAMP );