How does CUBA Studio knows which db update files have been applied and which not?

I develope my app with two computers, merging changes from/to a repo. Basically the “production” machine and the “dev” machine.

Sometimes I get database conflicts, because CUBA Studio tries to create a database table when it already exists.

I would like to mark somehow this circumstance in order to improve app maintainance in general.

How does actually Studio knows which files have been applied to the database? Or does it make an on-the-fly verification?

Thanks and regards.
Carlos.

The sys_db_changelog table contains the update script file names that were applied to the database.

By default, when you start an application, Cuba tries to apply all update scripts that are contained in the core\db\update[ db name] folder but have not been marked in the sys_db_changelog.
This is described in detail in the documentation.

Many thanks Alex.

Did some search in studio, obviously with no luck.

Regards,
Carlos.

In Studio, scripts can be seen in the All Sources node
image