This `if` should be moved to line 301. I got a sytnax error `unexpected endif` when I ran a test.
Could you also verify the changeset by dumping a rather complex MySQL schema and then insert it into SQLite?