SQLite: Implement migrations SQL generator

(I'm looking for feedback on a few of the TODOs.)
Actually, it looks like a lot of major players don't have the `ON` clause: DB2, Oracle, SQLite, PostgreSQL