summaryrefslogtreecommitdiff
path: root/django/bin/django-admin.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-15 23:43:17 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-15 23:43:17 +0000
commitdc5f2506d1f8a196459e72ffa871877a40902b53 (patch)
tree7b916b33a6c4d663b43b4eb1b58c6394ca990570 /django/bin/django-admin.py
parent0a35fce98ac118bcc8269e0cc330956399f38bd2 (diff)
Changed 'django-admin sqlclear' to output deletion of content_types table now that we're not using ON DELETE CASCADE anymore
git-svn-id: http://code.djangoproject.com/svn/django/trunk@88 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin/django-admin.py')
-rw-r--r--django/bin/django-admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py
index abd7c46dd0..f6950dbf06 100644
--- a/django/bin/django-admin.py
+++ b/django/bin/django-admin.py
@@ -127,6 +127,7 @@ def get_sql_delete(mod):
else:
output.append("DROP TABLE %s_%s;" % (opts.db_table, f.name))
output.append("DELETE FROM packages WHERE label = '%s';" % mod._MODELS[0]._meta.app_label)
+ output.append("DELETE from content_types WHERE package = '%s';" % mod._MODELS[0]._meta.app_label)
return output[::-1] # Reverse it, to deal with table dependencies.
get_sql_delete.help_doc = "Prints the DROP TABLE SQL statements for the given app(s)."
get_sql_delete.args = APP_ARGS