From 4aa089a9a9504c4a833eee8161be013206da5d15 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 26 Dec 2014 13:56:08 -0500 Subject: Removed support for custom SQL per deprecation timeline. --- docs/ref/django-admin.txt | 27 --------------------------- docs/ref/models/fields.txt | 3 +-- 2 files changed, 1 insertion(+), 29 deletions(-) (limited to 'docs/ref') 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 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 ------------------------------------ - -.. 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 -``/sql/.sql``, where ```` is the given app -name and ```` 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 ---------------------------------------- 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`). + you manually add an SQL ``ON DELETE`` constraint to the database field. .. attribute:: ForeignKey.swappable -- cgit v1.3