Skip to content

Commit 7f062ad

Browse files
committed
bumped version
1 parent 461a778 commit 7f062ad

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

CHANGES

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
Changes
22
=======
33

4+
0.49.0
5+
------
6+
Fixed a bug with ``create_pydantic_model`` when used with a ``Decimal`` /
7+
``Numeric`` column when no ``digits`` arguments was set (courtesy @AliSayyah).
8+
9+
Added the ``create_tables`` function, which accepts a sequence of ``Table``
10+
subclasses, then sorts them based on their ``ForeignKey`` columns, and creates
11+
them. This is really useful for people who aren't using migrations (for
12+
example, when using Piccolo in a simple data science script). Courtesy
13+
@AliSayyah.
14+
15+
.. code-block:: python
16+
17+
from piccolo.tables import create_tables
18+
19+
create_tables(Band, Manager, if_not_exists=True)
20+
21+
# Equivalent to:
22+
Manager.create_table(if_not_exists=True).run_sync()
23+
Band.create_table(if_not_exists=True).run_sync()
24+
25+
Fixed typos with the new fixtures app - sometimes it was referred to as
26+
``fixture`` and other times ``fixtures``. It's now standardised as
27+
``fixtures`` (courtesy @hipertracker).
28+
429
0.48.0
530
------
631
The ``piccolo user create`` command can now be used by passing in command line

piccolo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "0.48.0"
1+
__VERSION__ = "0.49.0"

0 commit comments

Comments
 (0)