How to use SugarCRM under version control?

I'm really curious about how to apply version control and deploy or build process like AWS CodeDeploy Pipeline to SugarCRM.

But I faced difficulties because of a certain scenario.

The scenario is this.

You now successfully deployed new files such as hooks and new UI which use new columns and these columns were created through Sugar Studio on development stage. After deployment is done, the system got failure because of new columns which don't exist on production database.

How can you solve this problem? and how do you guys deal with updates through Sugar Studio when you are using deployment process such as DevOps. Can you give me an example as the best practice?

Thank you.