Dear Team,
While going through some articles in the community, I found that the recommended step after modification/ addition/ deletion of schemas is
(1) Update Database -> Generate -> Compile.
The articles in the developer's guide recommend
(2) Generate-> Compile -> Update.
Could you please tell me the function of each of the commands and where the changes are actually reflected? Do (1) and (2) have any difference?
Thanks!
Like
Hello,
Compile all items option – publishes all configuration elements and compiles them. As a result, application’s executable files will be updated.Also it performs full regeneration of client static content exported to the ...\Terrasoft.WebApp\conf application folder. Basically all system elements, and their structure are recompiled all together.
Generate for all items option – re-generates the source code of all schemas code and their metadata.
Update where it is needed option – updates the database tables and database structure according to the changes you do in the schemas.
Dean
Dean Parrett,
Thank you Dean! Would it make any difference if the items were Updated, Generated and Compiled as opposed to Generate, Compile and Update? Am particularly interested in this because sometimes, databases don't get updated or changes in the code does not get reflected.
Shivani
Dear Shivani,
You can perform some of the necessary actions, it should not affect the system. But according to the best development practices on the platform, it is better to perform these actions in that order that is stated in the guidelines.
Dean