Commit Graph

729 Commits

Author SHA1 Message Date
Antonio Trapani bc220f5a64 fix: allow DataSource to reconnect properly
Fixes issue where calling disconnect() method
and then the connect() method causes the "Pool
is closed" error. See issue #367.
2019-05-23 14:08:26 -04:00
Agnes Lin 4c4094a310
Merge pull request #387 from strongloop/travisConfig
change config of env variables of travis
2019-05-23 12:40:45 -04:00
Agnes Lin 8d93eb38c7 update Travis MySQL config
- pin mysql version to 5.7
- set necessary environment variables
- create a test user & grant it priviledges to all schemas
- change the name of the default schema

Co-authored-by: Biniam Admikew <biniam@ca.ibm.com>
2019-05-23 12:20:41 -04:00
Diana Lau f809714241
Merge pull request #374 from strongloop/update/dependency-lodash
update lodash
2019-05-22 11:22:25 -04:00
jannyHou b1ec4211a7 fix: update lodash 2019-05-22 09:45:09 -04:00
Agnes Lin 1849507e06
Merge pull request #384 from strongloop/copyrights
chore: update copyrights years
2019-05-07 13:48:45 -04:00
Agnes Lin a12558e8a4 chore: update copyrights years 2019-05-07 13:37:19 -04:00
Diana Lau 26b76a4eeb 5.4.0
* Fix bug property declared index being recreate (HugoPoi)
 * Add onDelete onUpdate foreign key config options (HugoPoi)
 * Fix bug foreign key index being delete wrongly (HugoPoi)
 * chore: update travis and CODEOWNERS (Diana Lau)
2019-05-07 13:28:24 -04:00
Janny 62186650c1
Merge pull request #370 from HugoPoi/feature/foreign-key-on-config
Feature add foreign key on update on delete trigger config
2019-04-26 15:42:16 -04:00
HugoPoi 24fe635de5 Fix bug property declared index being recreate 2019-04-26 11:25:50 -04:00
HugoPoi 681bff4586 Add onDelete onUpdate foreign key config options 2019-04-26 11:25:49 -04:00
HugoPoi 5d8104af3f Fix bug foreign key index being delete wrongly 2019-04-26 11:25:49 -04:00
Diana Lau 7aec25b0d1
Merge pull request #376 from strongloop/update-travis
chore: update travis and CODEOWNERS
2019-04-22 16:58:18 -04:00
Diana Lau 03ba3a356d chore: update travis and CODEOWNERS 2019-04-17 22:31:37 -04:00
Diana Lau b10557356c 5.3.1
* update strong-globalize version (Diana Lau)
2018-09-12 10:45:35 -04:00
Diana Lau 5d03cb660e
Merge pull request #360 from strongloop/update-dep
update strong-globalize version
2018-09-12 09:25:17 -04:00
Diana Lau dec129eec1 update strong-globalize version 2018-09-12 09:18:42 -04:00
Raymond Feng 76bcec0bf7 5.3.0
* upgrade deps (Raymond Feng)
 * pin mysql image to 5.7 (Raymond Feng)
 * use "owner" for discovered results (Raymond Feng)
 * chore: update license (Diana Lau)
2018-07-12 11:43:31 -07:00
Raymond Feng 1c797f5992
Merge pull request #356 from strongloop/fix-discovery
Fix discovery
2018-07-12 11:42:32 -07:00
Raymond Feng ea93cc8735 upgrade deps 2018-07-12 11:08:51 -07:00
Raymond Feng c97fdf39b4 pin mysql image to 5.7
See https://github.com/mysqljs/mysql/issues/2002
2018-07-12 10:53:38 -07:00
Raymond Feng be599b9347 use "owner" for discovered results 2018-07-12 10:53:20 -07:00
Diana Lau e714de5b84
Merge pull request #337 from strongloop/license
chore: update license
2017-11-10 22:49:22 -05:00
Diana Lau f5d9e70344 chore: update license 2017-11-09 13:30:48 -05:00
Diana Lau 4f8b6a0a4d 5.2.0
* revert mocha version change (Diana Lau)
 * update dependencies (Diana Lau)
 * update globalize string (Diana Lau)
 * Add stalebot configuration (Kevin Delisle)
2017-10-17 14:04:17 -04:00
Diana Lau 506475373e Merge pull request #331 from strongloop/update-dep
Update dependencies
2017-10-17 11:58:43 -04:00
Diana Lau 26dc626ae8 revert mocha version change 2017-10-17 10:51:13 -04:00
Diana Lau e8aa62f52b update dependencies 2017-10-17 08:45:09 -04:00
Diana Lau c4adc3982c Merge pull request #327 from strongloop/globalize
update globalize string
2017-09-20 14:41:42 -04:00
Diana Lau 80aa38bed3 update globalize string 2017-09-20 14:28:19 -04:00
Kevin Delisle 978c30c578 Add stalebot configuration 2017-08-22 13:14:16 -04:00
Kevin Delisle 3b76a72453 5.1.0
* Create Issue and PR Templates (#322) (Sakib Hasan)
 * Use MySQL DEFAULT Clause/Constant (#319) (Eric Dowell)
 * Remove unnecessary line causing validation fail (ssh24)
 * isNewInstance undefined for after save hook (biniam)
 * Add datatype flags to README (biniam)
 * upgrade eslint deps (biniam)
 * Add CODEOWNER file (Diana Lau)
2017-08-21 14:12:56 -04:00
Sakib Hasan 6f716a55ad Create Issue and PR Templates (#322)
* create issue template

* create pr template
2017-08-15 18:22:29 -04:00
Eric Dowell 99597460f0 Use MySQL DEFAULT Clause/Constant (#319)
* 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.
2017-08-08 20:40:40 -04:00
Sakib Hasan ccac704cce Merge pull request #316 from strongloop/fix/validation-update
Remove unnecessary line causing validation fail
2017-07-31 17:15:03 -04:00
ssh24 b229bad2a5 Remove unnecessary line causing validation fail 2017-07-31 16:52:56 -04:00
Biniam Admikew 28d63b8dca Merge pull request #308 from strongloop/fix/instance-status-after-save
Set isNewInstance to undefined for after save hook on replaceOrCreate and updateOrCreate
2017-07-26 22:27:01 -04:00
biniam ad44168d4a isNewInstance undefined for after save hook
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.
2017-07-26 22:21:06 -04:00
Biniam Admikew 461ecf083e Merge pull request #314 from strongloop/update-docs-datatype-flags
Add datatype flags to README
2017-07-26 10:41:44 -04:00
biniam 487f08df88 Add datatype flags to README 2017-07-26 09:51:09 -04:00
Biniam Admikew 94484485b0 Merge pull request #313 from strongloop/update-eslint
upgrade eslint deps
2017-07-25 15:46:27 -04:00
biniam 7a7a34e77f upgrade eslint deps 2017-07-25 15:41:11 -04:00
Diana Lau 5eedce280e Merge pull request #311 from strongloop/add-codeowner
Add CODEOWNER file
2017-07-25 10:43:17 -04:00
Diana Lau 527910123f Add CODEOWNER file 2017-07-24 22:33:06 -04:00
Kevin Delisle 380eadeaf5 5.0.0
* 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)
2017-07-10 09:58:38 -04:00
Tetsuo Seto 853b9f87ab Merge pull request #306 from strongloop/decimal-number
Add DECIMAL to Number prop type
2017-06-27 12:06:25 -07:00
Tetsuo Seto b0ac2509f1 Add DECIMAL to Number prop type 2017-06-26 21:21:50 -07:00
Sakib Hasan 118bf9aee6 Merge pull request #303 from strongloop/fix/fk-docs
Fix foreign key example to avoid constraint errors
2017-06-20 12:23:50 -04:00
ssh24 ce84111111 Fix fk docs to avoid constraint errors 2017-06-20 12:07:36 -04:00
Biniam Admikew 34caec006c Merge pull request #302 from strongloop/doc/geopoint-upgrade
Document GeoPoint migration
2017-06-16 16:04:53 -04:00