mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #29934 -- Added sqlparse as a require dependency.
This commit is contained in:
parent
f9ff1df1da
commit
f82be9ebc7
10 changed files with 29 additions and 61 deletions
|
@ -240,8 +240,7 @@ partial indexes.
|
|||
|
||||
``sql``, and ``reverse_sql`` if provided, should be strings of SQL to run on
|
||||
the database. On most database backends (all but PostgreSQL), Django will
|
||||
split the SQL into individual statements prior to executing them. This
|
||||
requires installing the sqlparse_ Python library.
|
||||
split the SQL into individual statements prior to executing them.
|
||||
|
||||
You can also pass a list of strings or 2-tuples. The latter is used for passing
|
||||
queries and parameters in the same way as :ref:`cursor.execute()
|
||||
|
@ -294,8 +293,6 @@ be removed (elided) when :ref:`squashing migrations <migration-squashing>`.
|
|||
want the operation not to do anything in the given direction. This is
|
||||
especially useful in making the operation reversible.
|
||||
|
||||
.. _sqlparse: https://pypi.org/project/sqlparse/
|
||||
|
||||
``RunPython``
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue