SQLite: Implement migrations SQL generator

(I'm looking for feedback on a few of the TODOs.)
Where exactly? I'd prefer to not have TODOs that are not really actionable.