diff --git a/CHANGES.rst b/CHANGES.rst index 855260772..ffaac324f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,34 @@ Changes ======= +0.100.0 +------- + +``Array`` columns now support choices. + +.. code-block:: python + + class Ticket(Table): + class Extras(str, enum.Enum): + drink = "drink" + snack = "snack" + program = "program" + + extras = Array(Varchar(), choices=Extras) + +We can then use the ``Enum`` in our queries: + +.. code-block:: python + + >>> await Ticket.insert( + ... Ticket(extras=[Extras.drink, Extras.snack]), + ... Ticket(extras=[Extras.program]), + ... ) + +This will also be supported in Piccolo Admin in the next release. + +------------------------------------------------------------------------------- + 0.99.0 ------ diff --git a/piccolo/__init__.py b/piccolo/__init__.py index 1513745e0..58eab199b 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "0.99.0" +__VERSION__ = "0.100.0"