mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Refactored get_sql_flush() to DatabaseOperations.sql_flush(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -178,9 +178,9 @@ def sql_reset(app, style):
|
||||
return sql_delete(app, style) + sql_all(app, style)
|
||||
|
||||
def sql_flush(style):
|
||||
"Returns a list of the SQL statements used to flush the database"
|
||||
from django.db import backend
|
||||
statements = backend.get_sql_flush(style, table_list(), sequence_list())
|
||||
"Returns a list of the SQL statements used to flush the database."
|
||||
from django.db import connection
|
||||
statements = connection.ops.sql_flush(style, table_list(), sequence_list())
|
||||
return statements
|
||||
|
||||
def sql_custom(app):
|
||||
|
||||
Reference in New Issue
Block a user