mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Revert "Fixed #24369 -- Prevented crash when flush
ing before db migration"
This reverts commit 9f1dbe29c0dbae57ff7950f3f64a0d083177cca8. The proposed solution does not pass the test suite.
This commit is contained in:
parent
9f1dbe29c0
commit
90ab6ee612
@ -46,10 +46,6 @@ class Command(BaseCommand):
|
|||||||
sql_list = sql_flush(self.style, connection, only_django=True,
|
sql_list = sql_flush(self.style, connection, only_django=True,
|
||||||
reset_sequences=reset_sequences,
|
reset_sequences=reset_sequences,
|
||||||
allow_cascade=allow_cascade)
|
allow_cascade=allow_cascade)
|
||||||
if not sql_list:
|
|
||||||
raise CommandError(
|
|
||||||
"No commands to proceed with, maybe the database is still empty?"
|
|
||||||
)
|
|
||||||
|
|
||||||
if interactive:
|
if interactive:
|
||||||
confirm = input("""You have requested a flush of the database.
|
confirm = input("""You have requested a flush of the database.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user