* Adding ability to use MySQL DEFAULT clause
Adding mysql.default option and documentation on special case for date.
Adding unit tests for Default Clause.
* Handle unsupported types, don't stringify numbers
* Adding note about unsupported column types.
* Update readme.
Since using REPLACE or INSERT...ON DUPLICATE KEY
statements both give us affected rows of 1 for a
new row or a row which got updated with the same
values, we make isNewInstance undefined on after
save hook for save, replaceOrCreate, and
updateOrCreate methods. Also, disable juggler
tests for that functionality.
* Add DECIMAL to Number prop type (Tetsuo Seto)
* Fix fk docs to avoid constraint errors (ssh24)
* Document GeoPoint migration (biniam)
* Honor user specified datatype on PKs (ssh24)
* Require init on mocha args (ssh24)
* Add docs on FK integrity (ssh24)
* Create database on the docker script (ssh24)
* Handle null vals properly (biniam)
* Allow case sensitive regex operation (ssh24)
* switch long and lat for geopoint type (biniam)
* discovery.test: fix discoverModels tests (Kevin Delisle)
When converting null values
to database column values,
return null if column is
nullable, otherwise try
to cast it to the property
type, and if not, return
'null'.
MySQL expects reverse order of latitude and longitude
from the way we use it in LoopBack, so switch the order
when saving and loading Point spatial type we use for
Point/GeoPoint.
* Add http status code translations for errors (Kevin Delisle)
* Allow explicit data types (ssh24)
* Revert "switch long and lat for geopoint type" (biniam)
* switch long and lat for geopoint type (biniam)
* Escape index names (#280) (Sakib Hasan)
* Fix docker setup (#279) (Sakib Hasan)
* Add docker setup (#278) (Sakib Hasan)
* Adding support for fractional seconds. (Joost de Bruijn)
* fix compare of foreign keys for autoupdate (#272) (Sergey Nosenko)
* Update README.md (Antoine LA)
* Add docker setup
Add a setup script that spawns a docker container before running test
Easy for contributors now to test, no need for a local instance
* Update readme with docs on running test
* Allow check for container status
Check for if the container is up before proceeding
* Add options for customized user,pass,port
* Fix seeding on database
Only seed the database if user specifies CI=true
OR when the tests actually run on the CI
* Update readme with windows env var
* fix compare of foreign keys for autoupdate
use mysql table name in case it is not equal model name
* fix column name lookup for fk definition
* fix ADD CONSTRAINT for multiple fk
if more the one foreign key added ADD CONSTRAINT
must be separated with comma but not with space as applySqlChanges do.
* fix duplicate foreign key creation on autoupdate
* fix entity name selection
* change join to toString as requested
* fix removing dropped keys
* fix linter issues
* add test case with columnName in foreign key
and isActual check after autoupdate
* uncommit accitenally commited test case