File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 11Changes
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+
4290.48.0
530------
631The ``piccolo user create`` command can now be used by passing in command line
Original file line number Diff line number Diff line change 1- __VERSION__ = "0.48 .0"
1+ __VERSION__ = "0.49 .0"
You can’t perform that action at this time.
0 commit comments