new console command to generate sql migration scripts


Reason:
we need to have the possibility to generate and deliver pure sql migration scripts.
This is the first step into this direction.

We need this merged into ownCloud6 as it will allow us to understand W(hy)TF something like #5384 happens

@bartv2 @butonic @bantu @karlitschek @blizzz THX