4.3.4.17. updateDb
updateDb
– the task of the CubaDbUpdate
type which updates the database by executing the corresponding scripts. It is similar to the createDb
task, except that the dropDbSql
and createDbSql
parameters are omitted.
If you configure the data source using application properties, the task obtains parameters from the properties, so the task definition can be empty:
task updateDb(dependsOn: assembleDbScripts, description: 'Updates local database', type: CubaDbUpdate) {
}
You can also set the parameters described in createDb (except dropDbSql
and createDbSql
) explicitly.