- 19 Feb, 2017 1 commit
-
-
* Adds JSON support for sqlite * Add JSON support to sqlite query-generator * add integration test for sqlite json * add unit test for sqlite json * fix inaccurate test for json from postgres * Fix failing test spec in postgres * Change accroding to review - Change MySqlQueryGenerator to AbstractQueryGenerator (sqlite) - Move parseConditionObject method to the AbstractQueryGenerator (sqlite, postgres) - Remove unnecessary module require - Remove extra lines * Fix failing test with sequelize static reference * Add JSONB type alias to sqlite data types * Update changelog.md * Update jsdoc for JSON datatype * Updates from PR feedback - Convert es5 syntax to es6 for sqlite query-generator * Fix parenthesis with single parameter * Fix deleteQuery condition with JSON field * Update integration/data-types.test.js * Add JSON injection preventation code for sqlite - Add checkValidJsonStatement method to sqlite query-generator - Add injection tests for sqlite * Update sqlite JSON query-generator * Move common json DAO tests to abstract/dao.test.js - Add support for json property accessors (sqlite, postgres) * Fix wrong indentation in abstract/query-generator.js * Update query-generator.js to use common json method * Fix inconsistent postgres cast syntax * Update JSON test specs - Add injection test for postgres/query-generators.js - Replace default sql test expectation with specific dialect (postgres) - Update expectsql from test/support.js to throw error when no default expectation * Fix failing postgres test with cast * Fix postgres casting syntax * Fix failing test for postgres * Revert indentation of postgres query-generator * Cleanup unnecessarily added code update jsdoc of jsonPathExtractionQuery to match the exact function arguments * Move integration/dialects/abstract/dao.test.js to integration/json.test.js * Rewrite unit tests for json query-generator in unit/sql/json.test.js * Capitalize AND operator while generating json query via condition object * Fix failed tests
Youngrok Kim committed
-
- 15 Feb, 2017 1 commit
-
-
Spelling correction.
Cyrus Bowman committed
-
- 08 Feb, 2017 2 commits
-
-
* Fixes setAssociation with scope * Fixes style
pola88 committed -
* Refactored support for ORDER BY clause so SQL injection is not possible. * Adds sublime text files to gitignore. Modified changelog to accurately represent changes to the order property. Fixed lint issues. * Added rejection with error where Order must be type of Array or instance of sequelize literal. * Removed support for options.order accepting strings. @TODO Look into plain objects with property raw @TODO Update documentation and tests * Removed all direct lodash and replaced them with Utils. ie. `_.isPlainObject` is now `Utils._.isPlainObject` find: `(?s)(?<!Utils\.)_\.` replace : `Utils._.` * Updates documentation for findAll order. * Added removeTicks to addTicks in quoteIdentifier for each dialect. * Added documentation for order by only an array. * Added breaking change to changelog and renamed error to be more general. @TODO: TESTS! * Fixes bad code when checking if the order is valid. * Updated unit tests. * Should incorporate all integration tests. * Update changelog.md capitalize Sequelize * Changes everything in query generator to use lodash outside of utils. * Instead of checking if the order object is an instance of a Utils member we just see if `_.isSequelizeMethod` is truthy. * Removing escapeId because it is no longer used. * Instead of removing ticks, we should escape them. * Instead of removing ticks, we should escape them. (reverted from commit e4dade0a18be85dfaf8f91f1210bc0b5bedcb31a) * Removes support for `._isSequelizeMethod` because it can be spoofed. Instead, use instanceof.
Michael Kaufman committed
-
- 07 Feb, 2017 3 commits
-
-
* Refactored support for ORDER BY clause so SQL injection is not possible. * Adds sublime text files to gitignore. Modified changelog to accurately represent changes to the order property. Fixed lint issues. * Added rejection with error where Order must be type of Array or instance of sequelize literal. * Removed support for options.order accepting strings. @TODO Look into plain objects with property raw @TODO Update documentation and tests * Removed all direct lodash and replaced them with Utils. ie. `_.isPlainObject` is now `Utils._.isPlainObject` find: `(?s)(?<!Utils\.)_\.` replace : `Utils._.` * Updates documentation for findAll order. * Added removeTicks to addTicks in quoteIdentifier for each dialect. * Added documentation for order by only an array. * Added breaking change to changelog and renamed error to be more general. @TODO: TESTS! * Fixes bad code when checking if the order is valid. * Updated unit tests. * Should incorporate all integration tests. * Update changelog.md capitalize Sequelize * Changes everything in query generator to use lodash outside of utils. * Instead of checking if the order object is an instance of a Utils member we just see if `_.isSequelizeMethod` is truthy. * Removing escapeId because it is no longer used. * Instead of removing ticks, we should escape them. * Instead of removing ticks, we should escape them. (reverted from commit e4dade0a18be85dfaf8f91f1210bc0b5bedcb31a)
Michael Kaufman committed -
Harshith Kashyap committed
-
* (docs/docs/associations.md) punctuation fix - added comma * (docs/docs/associations.md) punctuation fix - added comma * (docs/docs/associations.md) grammar correction
Nicholas W Fortner committed
-
- 04 Feb, 2017 3 commits
-
-
Maks Nemisj committed
-
Sushant committed
-
* Pass options to MSSQL removeColumn queries * [ci skip] Added changelog entry * Review fixes - Use Object.assign instead of lodash assign * Update changelog description
Harshith Kashyap committed
-
- 03 Feb, 2017 1 commit
-
-
* fix ER_EMPTY_QUERY error on update with virtual fields for master * fix review * [ci skip] Changelog for #6356
Artem committed
-
- 02 Feb, 2017 1 commit
-
-
* Fixes creation of polymorphic belongToMany associations in one step * Fix test failure for MSSQL * Fix tests
elasticsearcher committed
-
- 01 Feb, 2017 4 commits
-
-
* Fix `Instance.decrement` precision problems * [ci skip] Link to issue
Pedro Branco committed -
C. T. Lin committed
-
* Throw an error when attribute options are not formatted correctly * remove space * update changelong
Nicholas Drane committed -
* Tedious debug undefined dialectOptions fix * Added PR link to changelog
Harshith Kashyap committed
-
- 31 Jan, 2017 2 commits
-
-
v3: sourceKey feature for hasMany doesn't work if where clause specified in include (#7141) (#7147) * Initial Commit * Stops test from removing test/integration/assets/es6project.js * Fixes impromper syntax when specifying the use of association.sourceIdentifier or left.primaryKeyAttribute for attrLeft. Also includes integration test. * Updates changelog. * Adds link to issue in changelog entry. * Added 'Future' header to changelog entry * Removed changelog update as requested. * Updates changelog. Fixes query-generator to properly build queries from hasMany even with an include while respecting a specified sourceKey. Adds an integration test. * Added back removed whitespace per request. * Updates test in include altered field name in source key. Fixes were then made to address the test breaking. All tests pass now. * Adds back removed whitespace.
LoneWolfPR committed -
* MSSQL - Skip isolationLevel query, enable tedious debugging * Added changelog entry, updated docs
Harshith Kashyap committed
-
- 24 Jan, 2017 1 commit
-
-
Sushant committed
-
- 21 Jan, 2017 1 commit
-
-
* generic pool update and other fixes * connection internally removed * doc entry * review changes * pooling changes
Sushant committed
-
- 20 Jan, 2017 1 commit
-
-
Todd Wolfson committed
-
- 17 Jan, 2017 1 commit
-
-
Miguel Ruiz committed
-
- 14 Jan, 2017 1 commit
-
-
Sushant committed
-
- 12 Jan, 2017 1 commit
-
-
* Added getPrimaryKeyConstraint method to drop primarykey constraint before dropping primarykey column * Added changelog entry, exclude primaryKey constraint for mysql removeColumn method * Review fixes * Fixes failing test
Harshith Kashyap committed
-
- 11 Jan, 2017 1 commit
-
-
Daniel Hayes committed
-
- 10 Jan, 2017 1 commit
-
-
Sushant committed
-
- 05 Jan, 2017 2 commits
-
-
Sascha Depold committed
-
Jan Aagaard Meier committed
-
- 04 Jan, 2017 2 commits
-
-
* Enabled filtered indexes for SQL Server * [ci skip] Added filtered indexes to docs/migrations.md
Harshith Kashyap committed -
* add failing unit test * use .slice instead of .splice to get arguments for scope functions * add message to changelog.md
Brian Woodward committed
-
- 03 Jan, 2017 2 commits
-
-
* fix: use paranoid with groupedLimit.on association * logging and unstable test * eslint changes * Update belongs-to-many.js
Sushant committed -
https://greenkeeper.io/
Greenkeeper committed
-
- 30 Dec, 2016 1 commit
-
-
* added validation checks for findall * unittest input validations checking code for findall * es6 changes function to => * trailing whitespace * remove unnecessary use of bind given es6 => funcs * update changelog and fix jshint errors * fix changelog * add test to make sure findall calls input validation function * remove only from test * remove generic invalid option support and only apply for model attributes
Nicholas Drane committed
-
- 28 Dec, 2016 1 commit
-
-
* Add missing period. * Remove extra "here"
Ash Lux committed
-
- 27 Dec, 2016 1 commit
-
-
* rewrite logic for finding associations * update and add new error messgaes and change existing tests to match * remove comments * tighten up code for getting associations and keep support for node4 * create SequelizeEagerLoadingError * remove spaces * added some happy path unit tests for _getIncludedAssociation * updated the change log * remove only * associations with duplicate aliases are not allowed * add semi-colon * place hasAlias in more sensible locatio * added hasAlias tests * added association tests for duplicate aliases * remove unused require * update changeload * small formatting changes * add missing parameter * remove some basic setup from each association and add to constructor * add regression tests for improperly constructed belongsToMany associations * use single quote strings and small const fix * eslint fixes * small refactor * jshint promise expception added
Nicholas Drane committed
-
- 23 Dec, 2016 1 commit
-
-
* [MSSQL] MERGE statement foreignKey violation is formatted as ForeignKeyConstraintError, Closes #7011 * Added changelog entry * Alter changelog entry * [ci skip] link to issue
Harshith Kashyap committed
-
- 22 Dec, 2016 2 commits
-
-
Robert Kieffer committed
-
* rewrite logic for finding associations * update and add new error messgaes and change existing tests to match * remove comments * tighten up code for getting associations and keep support for node4 * create SequelizeEagerLoadingError * remove spaces * added some happy path unit tests for _getIncludedAssociation * updated the change log * remove only
Nicholas Drane committed
-
- 21 Dec, 2016 1 commit
-
-
* [MSSQL] Uses crypto randomBytes to generate 20 character trasaction identifier, enabled trasaction tests for mssql dialect * Added missing break, changelog entry * Added READ_COMMITTED_SNAPSHOT ON script for tests, fixes skipped tests, transaction savepoints, uses sequelize_test as default database on appveyor * Added sqlcmd database query to appveyor-setup.ps1 * Added sequelize_test as default db in test/config/config for MSSQL dialect * Moved READ_COMMITTED_SNAPSHOT ON query to appveyor ps script * Replaced lodash includes with startsWith, review fixes, closes #6954
Harshith Kashyap committed
-
- 20 Dec, 2016 1 commit
-
-
Jan Aagaard Meier committed
-