Is it possible to automatically synchronize settings with the database according to DBI files? I mean without the wizard in the developer.
The same question also applies to the metadata.
Usage: Automated process for WAR creation. Source code is automatically retrieved from GIT and the WAR is created (this is certainly done in the Servoy cloud according to the same principle).
Now, of course, we have errors due to the data model changes.
Are there any shell scripts for this? Does anyone have any tips on how we could do this?
Hi Monika,
In the WAR export wizard you can tick 2 checkboxes:
- Export based on DBI files only
- Export metadata from metadata tables
In that case the export is based on the content of the workspace, not based on DB structure or content of the metadata table in your DB.
Of course when you add records to the metadata table, the developer should sync these changes with the workspace in order to make them end up in GIT.
Hope that helps
Hi Marc
Thank you for the answer. Yes, I knew about this configuration and I thought, that this is the right way. So thank you for that confirmation. We’re fine with this.
We were just wondering, if there would be another way, so that we could keep clean the database in our cloud. But in fact it is not important to keep this database clean, because all information is correctly contained in the DBI files and metadata files, which are correct in GIT.
Hi Monika,
Indeed, the best way is to rely on the information in GIT.
Still if you are changing any properties of existing columns, this needs to be updated in (preferable) pre-import module during deployment.
Or maybe a combination of pre- and post-import modules.
Servoy will just handle creation of new columns if you configured that in the WAR export.