Update discovery.js
The issue is with the Discovery of Models. MYSQL Fields of Type 'POINT' are being discovered but loopback LDL model field provided by discovery functions is being of type 'String'. missing code: case 'POINT': return 'GeoPoint'; for further information: https://github.com/strongloop/loopback-connector-mysql/issues/17
This commit is contained in:
parent
51a851469f
commit
3a06e0eae1
|
@ -348,6 +348,8 @@ function mixinDiscovery(MySQL) {
|
||||||
case 'TIMESTAMP':
|
case 'TIMESTAMP':
|
||||||
case 'DATETIME':
|
case 'DATETIME':
|
||||||
return 'Date';
|
return 'Date';
|
||||||
|
case 'POINT'
|
||||||
|
return 'GeoPoint';
|
||||||
default:
|
default:
|
||||||
return 'String';
|
return 'String';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue