In the Building Stage, GeneXus analyzes schema changes and generates
- database reorganization programs and
- a script with the corresponding SQL Statements
You could package that reorganization programs using specific msbuild tasks and/or copy the scripts to the project. The latter can also be automated by configuring what msbuild task to trigger after the building process finishes, and by configuring Build Events in the KB.
Additionally, you can configure the KB so that it blocks any change that isn’t backward compatible, among other configurations
More information at https://wiki.genexus.com/commwiki/servlet/wiki?3154,Features+of+Reorganizations
If you are using SQL Server 2019 Database projects as a way to obtain dacpac files that hold your database model you can use the msbuild task CreateDatabase to generate automatically the creation script of the database, integrate the generated script with your SQL Server database project in order to obtain the dacpac during the CI process.