mirror of https://github.com/django/django.git
Refs #25196 -- Fixed incorrect argument order in test database creation.
This commit is contained in:
parent
f85e3cb7cb
commit
abcdb237bb
|
@ -31,7 +31,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||
try:
|
||||
if verbosity >= 1:
|
||||
print("Destroying old test database for alias %s..." % (
|
||||
self._get_database_display_str(target_database_name, verbosity),
|
||||
self._get_database_display_str(verbosity, target_database_name),
|
||||
))
|
||||
cursor.execute("DROP DATABASE %s" % qn(target_database_name))
|
||||
cursor.execute("CREATE DATABASE %s" % qn(target_database_name))
|
||||
|
|
|
@ -33,7 +33,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||
try:
|
||||
if verbosity >= 1:
|
||||
print("Destroying old test database for alias %s..." % (
|
||||
self._get_database_display_str(target_database_name, verbosity),
|
||||
self._get_database_display_str(verbosity, target_database_name),
|
||||
))
|
||||
cursor.execute("DROP DATABASE %s" % qn(target_database_name))
|
||||
cursor.execute("CREATE DATABASE %s WITH TEMPLATE %s" % (
|
||||
|
|
Loading…
Reference in New Issue