Then I tried running each command separately. When I ran sqlclear, nothing
appeared to happened.
{{{
$ django-admin.py sqlclear foia_core
$
}}}
This is confusing to user if they are expecting something to happen. There
should be output to tell the user what happened.
Example: Foo app has no tables in the database.
--
Ticket URL: <https://code.djangoproject.com/ticket/23136>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
Sounds reasonable, and shouldn't be too hard to implement either. Might be
worth checking if other sql* commands are also affected as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:1>
Comment (by timo):
I believe most of the sql* commands besides sqlmigrate are headed down the
deprecation path, so this might not be worth it.
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:2>
Comment (by gmunumel):
I´d like to implement this if there is not objection.
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:3>
* owner: nobody => gmunumel
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:4>
Comment (by gmunumel):
PR:
https://github.com/gmunumel/django/commit/c85ac9b7929d07793b33101468d96fb09ff8d90a
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:5>
Comment (by timo):
Couple of issues:
- New features are going to master only (not 1.6).
- I only see a test in your commit, not the functional changes (and it
isn't an actual pull request).
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:6>
Comment (by gmunumel):
New attempt: https://github.com/django/django/pull/3024
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:7>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* version: 1.6 => master
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:8>
Comment (by gmunumel):
I made the changes Timo
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In 3e241313a4cea5dbf53068181408a7c34f00c9ca:
Fixed #23136 -- Added a message when sqlclear does nothing
--
Ticket URL: <https://code.djangoproject.com/ticket/23136#comment:10>