SQLite: Implement migrations SQL generator

(I'm looking for feedback on a few of the TODOs.)
There is nothing that calls ToList because the other parts of the stack use IReadOnlyList. Can change to IEnumerable but I don't see a good reason why.