try {
EOModel dbUpdaterModel = dbUpdaterModelWithModel(model, adaptor);
EOEntity dbUpdaterEntity = dbUpdaterModel.entityNamed(migrationTableName(adaptor));
EOFetchSpecification fetchSpec = new EOFetchSpecification(migrationTableName(adaptor), new EOKeyValueQualifier("modelName", EOQualifier.QualifierOperatorEqual, model.name()), null);
try {
channel.selectAttributes(new NSArray<EOAttribute>(dbUpdaterEntity.attributeNamed("version")), fetchSpec, false, dbUpdaterEntity);
NSDictionary nextRow = channel.fetchRow();
if (nextRow == null) {
version = initialVersionForModel(model);
}
else {