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.

    View commits