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