不要怂,就是干,撸起袖子干!

  1. 08 Feb, 2017 2 commits
    • Fixes setAssociation with scope (#7159) · 8cbd3750
      * Fixes setAssociation with scope
      
      * Fixes style
      pola88 committed
    • 6935 remove order string syntax (#7220) · e22ce18d
      * 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
  2. 07 Feb, 2017 3 commits
    • 6935 remove order string syntax (#7160) · c12b36b8
      * 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
    • Punctuation and grammar correction in docs/docs/associations.md. (#7211) · c3afda63
      * (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
  3. 04 Feb, 2017 3 commits
  4. 03 Feb, 2017 1 commit
  5. 02 Feb, 2017 1 commit
  6. 01 Feb, 2017 4 commits
  7. 31 Jan, 2017 2 commits
    • cherry-pick: 3168d543 · 7d3172df
      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 (#7130) · 4416eff9
      * MSSQL - Skip isolationLevel query, enable tedious debugging
      
      * Added changelog entry, updated docs
      Harshith Kashyap committed
  8. 24 Jan, 2017 1 commit
  9. 21 Jan, 2017 1 commit
  10. 20 Jan, 2017 1 commit
  11. 17 Jan, 2017 1 commit
  12. 14 Jan, 2017 1 commit
  13. 12 Jan, 2017 1 commit
  14. 11 Jan, 2017 1 commit
  15. 10 Jan, 2017 1 commit
  16. 05 Jan, 2017 2 commits
  17. 04 Jan, 2017 2 commits
  18. 03 Jan, 2017 2 commits
  19. 30 Dec, 2016 1 commit
    • Improved findall warnings (#7047) · 212a3024
      * 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
  20. 28 Dec, 2016 1 commit
  21. 27 Dec, 2016 1 commit
    • Prevent Duplicate Aliases in Associations (#7025) · 308ed720
      * 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
  22. 23 Dec, 2016 1 commit
  23. 22 Dec, 2016 2 commits
  24. 21 Dec, 2016 1 commit
    • Transactions for SQL Server (#6972) · 086255e5
      * [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
  25. 20 Dec, 2016 2 commits
  26. 16 Dec, 2016 1 commit