From 20e5b9f7e3b28b11ffb7f513d06b399e0c9a85ed Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 26 Mar 2006 02:22:41 +0000 Subject: [PATCH] magic-removal: Fixed #1508 -- Added index creation to sqlall stage of manage.py. Thanks, Ned. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2565 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/core/management.py b/django/core/management.py index cbc1655c59..cb6e42f7ce 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -373,9 +373,9 @@ get_sql_indexes.help_doc = "Prints the CREATE INDEX SQL statements for the given get_sql_indexes.args = APP_ARGS def get_sql_all(app): - "Returns a list of CREATE TABLE SQL and initial-data insert for the given app." - return get_sql_create(app) + get_sql_initial_data(app) -get_sql_all.help_doc = "Prints the CREATE TABLE and initial-data SQL statements for the given model module name(s)." + "Returns a list of CREATE TABLE SQL, initial-data inserts, and CREATE INDEX SQL for the given module." + return get_sql_create(mod) + get_sql_initial_data(mod) + get_sql_indexes(mod) +get_sql_all.help_doc = "Prints the CREATE TABLE, initial-data and CREATE INDEX SQL statements for the given model module name(s)." get_sql_all.args = APP_ARGS def syncdb():