summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-26 13:56:08 -0500
committerTim Graham <timograham@gmail.com>2015-01-17 10:16:06 -0500
commit4aa089a9a9504c4a833eee8161be013206da5d15 (patch)
treeebc7e23d3805c57d9f6a4fc75767b5e5046617a4 /docs/ref
parenta420f83e7d2e446ca01ef7c13d30c2ef3e975e5c (diff)
Removed support for custom SQL per deprecation timeline.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt27
-rw-r--r--docs/ref/models/fields.txt3
2 files changed, 1 insertions, 29 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 29c9537dad..a437c0f764 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -989,9 +989,6 @@ sqlall <app_label app_label ...>
Prints the CREATE TABLE and initial-data SQL statements for the given app name(s).
-Refer to the description of :djadmin:`sqlcustom` for an explanation of how to
-specify initial data.
-
The :djadminopt:`--database` option can be used to specify the database for
which to print the SQL.
@@ -1012,30 +1009,6 @@ Prints the DROP TABLE SQL statements for the given app name(s).
The :djadminopt:`--database` option can be used to specify the database for
which to print the SQL.
-sqlcustom <app_label app_label ...>
------------------------------------
-
-.. django-admin:: sqlcustom
-
-Prints the custom SQL statements for the given app name(s).
-
-For each model in each specified app, this command looks for the file
-``<app_label>/sql/<modelname>.sql``, where ``<app_label>`` is the given app
-name and ``<modelname>`` is the model's name in lowercase. For example, if you
-have an app ``news`` that includes a ``Story`` model, ``sqlcustom`` will
-attempt to read a file ``news/sql/story.sql`` and append it to the output of
-this command.
-
-Each of the SQL files, if given, is expected to contain valid SQL. The SQL
-files are piped directly into the database after all of the models'
-table-creation statements have been executed. Use this SQL hook to make any
-table modifications, or insert any SQL functions into the database.
-
-Note that the order in which the SQL files are processed is undefined.
-
-The :djadminopt:`--database` option can be used to specify the database for
-which to print the SQL.
-
sqldropindexes <app_label app_label ...>
----------------------------------------
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 8604137afe..39d728bbce 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1295,8 +1295,7 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
Take no action. If your database backend enforces referential
integrity, this will cause an :exc:`~django.db.IntegrityError` unless
- you manually add an SQL ``ON DELETE`` constraint to the database field
- (perhaps using :ref:`initial sql<initial-sql>`).
+ you manually add an SQL ``ON DELETE`` constraint to the database field.
.. attribute:: ForeignKey.swappable