SQLite: Implement migrations SQL generator

(I'm looking for feedback on a few of the TODOs.)
If I am not mistaken a bunch of servers use this syntax, so it may be ok to keep here.