#31700: Highlight destructive operations in makemigrations output
-----------------------------+-----------------------------------------
     Reporter:  Tom Forbes   |                    Owner:  Ramon Saraiva
         Type:  New feature  |                   Status:  assigned
    Component:  Migrations   |                  Version:  master
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+-----------------------------------------

Comment (by Ramon Saraiva):

 Looking at the implementation for this output, it feels like the `+` for
 addition, `-` for deletion, and `~` for modification approach might be
 easier to accomplish. Could potentially add a prefix based on the
 "operation type".

 Sounds like all operations follow this same structure of
 `(Add|Remove|Alter){suffix}` so I could possibly use that to identify what
 type of prefix I'd be using. The other way would be explicitly configuring
 an operation type in each operation.

 Adding colors to each operation might be a little too much, but I like the
 warning approach in the end (and maybe that can be colored somehow).

 What do you guys think?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.b98884c7c78f85cd4a44702b556b4042%40djangoproject.com.

Reply via email to