SQLite: Implement migrations SQL generator