{"action":"created","issue":{"url":"https://api.github.com/repos/klen/flask-restler/issues/72","repository_url":"https://api.github.com/repos/klen/flask-restler","labels_url":"https://api.github.com/repos/klen/flask-restler/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/klen/flask-restler/issues/72/comments","events_url":"https://api.github.com/repos/klen/flask-restler/issues/72/events","html_url":"https://github.com/klen/flask-restler/pull/72","id":304112029,"number":72,"title":"Update peewee to 3.1.3","user":{"login":"pyup-bot","id":16239342,"avatar_url":"https://avatars0.githubusercontent.com/u/16239342?v=4","gravatar_id":"","url":"https://api.github.com/users/pyup-bot","html_url":"https://github.com/pyup-bot","followers_url":"https://api.github.com/users/pyup-bot/followers","following_url":"https://api.github.com/users/pyup-bot/following{/other_user}","gists_url":"https://api.github.com/users/pyup-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pyup-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyup-bot/subscriptions","organizations_url":"https://api.github.com/users/pyup-bot/orgs","repos_url":"https://api.github.com/users/pyup-bot/repos","events_url":"https://api.github.com/users/pyup-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pyup-bot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-10T22:42:34Z","updated_at":"2018-03-14T19:57:44Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/klen/flask-restler/pulls/72","html_url":"https://github.com/klen/flask-restler/pull/72","diff_url":"https://github.com/klen/flask-restler/pull/72.diff","patch_url":"https://github.com/klen/flask-restler/pull/72.patch"},"body":"\nThis PR updates [peewee](https://pypi.python.org/pypi/peewee) from **2.10.2** to **3.1.3**.\n\n\n\n<details>\n  <summary>Changelog</summary>\n  \n  \n   ### 3.1.3\n   ```\n   * Fixed issue where scope-specific settings were being updated in-place instead\n  of copied. 1534.\n* Fixed bug where setting a `ForeignKeyField` did not add it to the model&#39;s\n  &quot;dirty&quot; fields list. 1530.\n* Use pre-fetched data when using `prefetch()` with `ManyToManyField`. Thanks\n  to iBelieve for the patch. 1531.\n* Use `JSON` data-type for SQLite `JSONField` instances.\n* Add a `json_contains` function for use with SQLite `json1` extension.\n* Various documentation updates and additions.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.1.2...3.1.3)\n   ```\n   \n  \n  \n   ### 3.1.2\n   ```\n   New behavior for INSERT queries with RETURNING clause\n\nInvestigating 1522, it occurred to me that INSERT queries with non-default\n*RETURNING* clauses (postgres-only feature) should always return a cursor\nobject. Previously, if executing a single-row INSERT query, the last-inserted\nrow ID would be returned, regardless of what was specified by the RETURNING\nclause.\n\nThis change only affects INSERT queries with non-default RETURNING clauses and\nwill cause a cursor to be returned, as opposed to the last-inserted row ID.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.1.1...3.1.2)\n   ```\n   \n  \n  \n   ### 3.1.1\n   ```\n   * Fixed bug when using `Model.alias()` when the model defined a particular\n  database schema.\n* Added `SchemaManager.create_foreign_key` API to simplify adding constraints\n  when dealing with circular foreign-key relationships. Updated docs\n  accordingly.\n* Improved implementation of `Migrator.add_foreign_key_constraint` so that it\n  can be used with Postgresql (in addition to MySQL).\n* Added `PickleField` to the `playhouse.fields` module. [Docs](http://docs.peewee-orm.com/en/latest/peewee/playhouse.htmlPickleField).\n* Fixed bug in implementation of `CompressedField` when using Python 3.\n* Added `KeyValue` API in `playhouse.kv` module. [Docs](http://docs.peewee-orm.com/en/latest/peewee/playhouse.htmlkey-value-store).\n* More test cases for joining on sub-selects or common table expressions.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.1.0...3.1.1)\n   ```\n   \n  \n  \n   ### 3.1.0\n   ```\n   Backwards-incompatible changes\n\n`Database.bind()` has been renamed to `Database.bind_ctx()`, to more closely\nmatch the semantics of the corresponding model methods, `Model.bind()` and\n`Model.bind_ctx()`. The new `Database.bind()` method is a one-time operation\nthat binds the given models to the database. See documentation:\n\n* [Database.bind()](http://docs.peewee-orm.com/en/latest/peewee/api.htmlDatabase.bind)\n* [Database.bind_ctx()](http://docs.peewee-orm.com/en/latest/peewee/api.htmlDatabase.bind_ctx)\n\n Other changes\n\n* Removed Python 2.6 support code from a few places.\n* Fixed example analytics app code to ensure hstore extension is registered.\n* Small efficiency improvement to bloom filter.\n* Removed &quot;attention!&quot; from *README*.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.20...3.1.0)\n   ```\n   \n  \n  \n   ### 3.0.20\n   ```\n   * Include `schema` (if specified) when checking for table-existence.\n* Correct placement of ORDER BY / LIMIT clauses in compound select queries.\n* Fix bug in back-reference lookups when using `filter()` API.\n* Fix bug in SQL generation for ON CONFLICT queries with Postgres, 1512.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.19...3.0.20)\n   ```\n   \n  \n  \n   ### 3.0.19\n   ```\n   * Support for more types of mappings in `insert_many()`, refs 1495.\n* Lots of documentation improvements.\n* Fix bug when calling `tuples()` on a `ModelRaw` query. This was reported\n  originally as a bug with *sqlite-web* CSV export. See coleifer/sqlite-web38.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.18...3.0.19)\n   ```\n   \n  \n  \n   ### 3.0.18\n   ```\n   * Improved error messages when attempting to use a database class for which the\n  corresponding driver is not installed.\n* Added tests showing the use of custom operator (a-la the docs).\n* Fixed indentation issue in docs, 1493.\n* Fixed issue with the SQLite date_part issue, 1494.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.17...3.0.18)\n   ```\n   \n  \n  \n   ### 3.0.17\n   ```\n   * Fix `schema` inheritance regression, 1485.\n* Add helper method to postgres migrator for setting search_path, 1353.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.16...3.0.17)\n   ```\n   \n  \n  \n   ### 3.0.16\n   ```\n   * Improve model graph resolution when iterating results of a query. Refs 1482.\n* Allow Model._meta.schema to be changed at run-time. 1483.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.15...3.0.16)\n   ```\n   \n  \n  \n   ### 3.0.15\n   ```\n   * Use same `schema` used for reflection in generated models.\n* Preserve `pragmas` set on deferred Sqlite database if database is\n  re-initialized without re-specifying pragmas.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.14...3.0.15)\n   ```\n   \n  \n  \n   ### 3.0.14\n   ```\n   * Fix bug creating model instances on Postgres when model does not have a\n  primary key column.\n* Extend postgresql reflection to support array types.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.13...3.0.14)\n   ```\n   \n  \n  \n   ### 3.0.13\n   ```\n   * Fix bug where simple field aliases were being ignored. Fixes 1473.\n* More strict about column type inference for postgres + pwiz.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.12...3.0.13)\n   ```\n   \n  \n  \n   ### 3.0.12\n   ```\n   * Fix queries of the form INSERT ... VALUES (SELECT...) so that sub-select is\n  wrapped in parentheses.\n* Improve model-graph resolution when selecting from multiple tables that are\n  joined by foreign-keys, and an intermediate table is omitted from selection.\n* Docs update to reflect deletion of post_init signal.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.11...3.0.12)\n   ```\n   \n  \n  \n   ### 3.0.11\n   ```\n   * Add note to changelog about `cursor()` method.\n* Add hash method to postgres indexedfield subclasses.\n* Add TableFunction to sqlite_ext module namespace.\n* Fix bug regarding NOT IN queries where the right-hand-side is an empty set.\n* Fallback implementations of bm25f and lucene search ranking algorithms.\n* Fixed DecimalField issue.\n* Fixed issue with BlobField when database is a Proxy object.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.10...3.0.11)\n   ```\n   \n  \n  \n   ### 3.0.10\n   ```\n   * Fix `Database.drop_tables()` signature to support `cascade` argument - 1453.\n* Fix querying documentation for custom functions - 1454.\n* Added len() method to `ModelBase` for convenient counting.\n* Fix bug related to unsaved relation population (thanks conqp) - 1459.\n* Fix count() on compound select - 1460.\n* Support `coerce` keyword argument with `fn.XXX()` - 1463.\n* Support updating existing model instance with dict_to_model-like API - 1456.\n* Fix equality tests with ArrayField - 1461.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.9...3.0.10)\n   ```\n   \n  \n  \n   ### 3.0.9\n   ```\n   * Add deprecation notice if passing `autocommit` as keyword argument to the\n  `Database` initializer. Refs 1452.\n* Add `JSONPath` and &quot;J&quot; helpers to sqlite extension.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.8...3.0.9)\n   ```\n   \n  \n  \n   ### 3.0.8\n   ```\n   * Add support for passing `cascade=True` when dropping tables. Fixes 1449.\n* Fix issues with backrefs and inherited foreign-keys. Fixes 1448.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.7...3.0.8)\n   ```\n   \n  \n  \n   ### 3.0.7\n   ```\n   * Add `select_extend()` method to extend existing SELECT-ion. [Doc](http://docs.peewee-orm.com/en/latest/peewee/api.htmlSelect.select_extend).\n* Accept `set()` as iterable value type, fixes 1445\n* Add test for model/field inheritance and fix bug relating to recursion error\n  when inheriting foreign-key field. Fixes 1448.\n* Fix regression where consecutive calls to `ModelSelect.select()` with no\n  parameters resulted in an empty selection. Fixes 1438.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.6...3.0.7)\n   ```\n   \n  \n  \n   ### 3.0.6\n   ```\n   Add constraints for ON UPDATE/ON DELETE to foreign-key constraint - 1443.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.5...3.0.6)\n   ```\n   \n  \n  \n   ### 3.0.5\n   ```\n   Adds Model.index(), a short-hand method for declaring ModelIndex instances.\n\n* [Model.index docs](http://docs.peewee-orm.com/en/latest/peewee/api.htmlModel.index)\n* [Model.add_index docs](http://docs.peewee-orm.com/en/latest/peewee/api.htmlModel.add_index)\n* [ModelIndex docs](http://docs.peewee-orm.com/en/latest/peewee/api.htmlModelIndex)\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.4...3.0.5)\n   ```\n   \n  \n  \n   ### 3.0.4\n   ```\n   Re-add a shim for `PrimaryKeyField` (renamed to `AutoField`) and log a\ndeprecation warning if you try to use it.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.3...3.0.4)\n   ```\n   \n  \n  \n   ### 3.0.3\n   ```\n   Includes fix for bug where column-name to field-name translation was not being\ndone when running select queries on models whose field name differed from the\nunderlying column name (1437).\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.2...3.0.3)\n   ```\n   \n  \n  \n   ### 3.0.2\n   ```\n   Ensures that the pysqlite headers are included in the source distribution so\nthat certain C extensions can be compiled.\n\n[View commits](https://github.com/coleifer/peewee/compare/3.0.0...3.0.2)\n   ```\n   \n  \n  \n   ### 3.0.0\n   ```\n   * Complete rewrite of SQL AST and code-generation.\n* Inclusion of new, low-level query builder APIs.\n* List of [backwards-incompatible changes](http://docs.peewee-orm.com/en/latest/peewee/changes.html).\n\n[View commits](https://github.com/coleifer/peewee/compare/2.10.2...3.0.0)\n   ```\n   \n  \n</details>\n\n\n \n\n<details>\n  <summary>Links</summary>\n  \n  - PyPI: https://pypi.python.org/pypi/peewee\n  - Changelog: https://pyup.io/changelogs/peewee/\n  - Repo: http://github.com/coleifer/peewee/\n</details>\n\n"},"comment":{"url":"https://api.github.com/repos/klen/flask-restler/issues/comments/373154680","html_url":"https://github.com/klen/flask-restler/pull/72#issuecomment-373154680","issue_url":"https://api.github.com/repos/klen/flask-restler/issues/72","id":373154680,"user":{"login":"pyup-bot","id":16239342,"avatar_url":"https://avatars0.githubusercontent.com/u/16239342?v=4","gravatar_id":"","url":"https://api.github.com/users/pyup-bot","html_url":"https://github.com/pyup-bot","followers_url":"https://api.github.com/users/pyup-bot/followers","following_url":"https://api.github.com/users/pyup-bot/following{/other_user}","gists_url":"https://api.github.com/users/pyup-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pyup-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyup-bot/subscriptions","organizations_url":"https://api.github.com/users/pyup-bot/orgs","repos_url":"https://api.github.com/users/pyup-bot/repos","events_url":"https://api.github.com/users/pyup-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pyup-bot/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T19:57:44Z","updated_at":"2018-03-14T19:57:44Z","author_association":"CONTRIBUTOR","body":"Closing this in favor of #73"}}
{"actor":{"display_login":"pyup-bot"}}