A form generates DDL statements with “CREATE TABLE…” sql. I would like to be able to synch database structure changes by running the following in .js file of the form:
plugins.maintenance.setMaintenanceMode(true)
plugins.maintenance.getServer(globals.targetServer).reloadDataModel()
plugins.maintenance.setMaintenanceMode(false)
which generates this error:
Maintenance plugin is only meant to run during solution import using before or after import hook.
Is there any way to run “reloadDataModel()” or other options to synch DB from Servoy FORM?