Peewee v2.2.3 Release Notes
-
๐ This release contains a new migrations module in addition to a number of small features and bug fixes.
๐ Changes in 2.2.3
- ๐ New migrations module.
- โ Added a return value to
Model.save()
indicating number of rows affected. - โ Added a
date_trunc()
method that works for Sqlite. - โ Added a
Model.sqlall()
class-method to return all the SQL to generate the model / indices.
๐ Bugs fixed
- #342, allow functions to not coerce parameters automatically.
- ๐ #338, fixed unaliased columns when using Array and Json fields with postgres, thanks @mtwesley.
- #331, corrected issue with the way unicode arrays were adapted with psycopg2.
- #328, pwiz / mysql bug.
- ๐ #326, fixed calculation of the alias_map when using subqueries.
- #324, bug with
prefetch()
not selecting the correct primary key.