return this.updateSchemas(connectionToSchema, connectionToDataBase);
}
public SQLCommandResponses updateSchemas(final Connection connectionToSchema,
final Connection connectionToDataBase) throws Exception {
final SQLCommandResponses result = new SQLCommandResponses();
// tables
final String[] tablecommands = this.compareTables(connectionToSchema,
connectionToDataBase);
if (null != tablecommands && tablecommands.length > 0) {
result.addAll(
this.execute(connectionToDataBase,
tablecommands,
_retries));
}
// fields
final String[] fieldscommands = this.compareTableColumns(connectionToSchema,
connectionToDataBase);
if (null != fieldscommands && fieldscommands.length > 0) {
result.addAll(
this.execute(connectionToDataBase,
fieldscommands,
_retries));
}