Ticket #1508: diff.txt

File diff.txt, 819 bytes (added by ned@…, 9 years ago)

A patch to make sqlall include sqlindexes.

Line 
1Index: site-packages/django/core/management.py
2===================================================================
3--- site-packages/django/core/management.py     (revision 3403)
4+++ site-packages/django/core/management.py     (working copy)
5@@ -264,8 +264,8 @@
6 get_sql_indexes.args = APP_ARGS
7
8 def get_sql_all(mod):
9-    "Returns a list of CREATE TABLE SQL and initial-data insert for the given module."
10-    return get_sql_create(mod) + get_sql_initial_data(mod)
11+    "Returns a list of CREATE TABLE SQL, initial-data inserts, and CREATE INDEX SQL for the given module."
12+    return get_sql_create(mod) + get_sql_initial_data(mod) + get_sql_indexes(mod)
13 get_sql_all.help_doc = "Prints the CREATE TABLE and initial-data SQL statements for the given model module name(s)."
14 get_sql_all.args = APP_ARGS
Back to Top