Answering to myself obviously sqlmigrate can't really do anything with code in RunPython.
So I suspect the biggest problem would be something like this:
- early data migration that uses an initial schema a certain model
- a later schema migration that changes that
so trying to generate the SQL after would not apply because the schema changed in the meanwhile..