mirror of
https://github.com/django/django.git
synced 2025-07-19 17:19:12 +00:00
Backport of abcdb237bb313d116ce2ac8e90f79f61429afc70 from master
This commit is contained in:
parent
0911c35678
commit
f0da306af1
@ -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" % (
|
||||
|
@ -35,3 +35,6 @@ Bugfixes
|
||||
using a string model name without an app_label no longer resolved that
|
||||
reference to the abstract model's app if using that model in another
|
||||
application (:ticket:`25858`).
|
||||
|
||||
* Fixed a crash when destroying an existing test database on MySQL or
|
||||
PostgreSQL (:ticket:`26096`).
|
||||
|
Loading…
x
Reference in New Issue
Block a user