Database Migrations with SugarCRM?

Hi all,

I like to use database migrations and git with sugar but i don't know how to do that.

In all migrations systems i have to create the SQL sentence and put it into the migration file, but the problem is when i create a new field with Studio, i don't know what SQL sentence is executing Sugar exactly, and it's the same when i create relationships.

So, is there any way to do this? For example, when i do something with Studio, a text file is created with the sentences that Studio executes?

thanks!