[Django] #31700: Highlight destructive operations in makemigrations output

34 views
Skip to first unread message

Django

unread,
Jun 12, 2020, 8:09:28 AM6/12/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
---------------------------------------+------------------------
Reporter: Tom Forbes | Owner: nobody
Type: New feature | Status: new
Component: Migrations | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+------------------------
Makemigrations should highlight destructive and potentially destructive
operations in the console output. We advise that makemigrations is only a
code generator people sometimes apply them without looking. Highlighting
dangerous operations in the output will make them stand out, and might
help them notice issues before they blindly apply.

For example:

{{{
$ ./manage.py makemigrations ...
Migrations for 'some_app':
some_app/migrations/0002_delete.py
- Delete model SomeModel
+ Add model AnotherModel
~ Alter field X on Y
}}}

We can use `-` as a prefix for known destructive operations, `+` for
"safe" operations and `~` for possibly-destructive operations, colour
coded as green, red and yellow respectively.

Mailing list discussion: https://groups.google.com/d/msg/django-
developers/A0m8YkPKpZo/Yx8l2P8EAQAJ

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

Django

unread,
Jun 12, 2020, 8:09:52 AM6/12/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+--------------------------------------

Reporter: Tom Forbes | Owner: nobody
Type: New feature | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Description changed by Tom Forbes:

Old description:

> Makemigrations should highlight destructive and potentially destructive
> operations in the console output. We advise that makemigrations is only a
> code generator people sometimes apply them without looking. Highlighting
> dangerous operations in the output will make them stand out, and might
> help them notice issues before they blindly apply.
>
> For example:
>
> {{{
> $ ./manage.py makemigrations ...
> Migrations for 'some_app':
> some_app/migrations/0002_delete.py
> - Delete model SomeModel
> + Add model AnotherModel
> ~ Alter field X on Y
> }}}
>
> We can use `-` as a prefix for known destructive operations, `+` for
> "safe" operations and `~` for possibly-destructive operations, colour
> coded as green, red and yellow respectively.
>
> Mailing list discussion: https://groups.google.com/d/msg/django-
> developers/A0m8YkPKpZo/Yx8l2P8EAQAJ

New description:

Makemigrations should highlight destructive and potentially destructive
operations in the console output. We advise that makemigrations is only a
code generator people sometimes apply them without looking. Highlighting
dangerous operations in the output will make them stand out, and might
help them notice issues before they blindly apply.

For example:

{{{
$ ./manage.py makemigrations ...
Migrations for 'some_app':
some_app/migrations/0002_delete.py
- Delete model SomeModel
+ Add model AnotherModel
~ Alter field X on Y
}}}

We can use `-` as a prefix for known destructive operations, `+` for
"safe" operations and `~` for possibly-destructive operations, colour

coded as red, green and yellow respectively.

Mailing list discussion: https://groups.google.com/d/msg/django-
developers/A0m8YkPKpZo/Yx8l2P8EAQAJ

--

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:1>

Django

unread,
Jun 16, 2020, 2:31:16 AM6/16/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+--------------------------------------

Reporter: Tom Forbes | Owner: nobody
Type: New feature | Status: closed
Component: Migrations | Version: master
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by Carlton Gibson):

* status: new => closed
* resolution: => needsinfo


Comment:

I'm not sure about this: seems like visual noise for (I suspect) little
benefit. I commented on the mailing list discussion: let's see how that
goes.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:2>

Django

unread,
Nov 19, 2020, 4:05:08 AM11/19/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+------------------------------------

Reporter: Tom Forbes | Owner: nobody
Type: New feature | Status: new
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
-----------------------------+------------------------------------
Changes (by Carlton Gibson):

* status: closed => new
* resolution: needsinfo =>
* stage: Unreviewed => Accepted


Comment:

A similar example of a dangerous migration with a rename involving
`verbose_name` has come up in #32206. That looks like a case where a
warning would come in handy.

[https://groups.google.com/g/django-
developers/c/A0m8YkPKpZo/m/elJVb9JCAgAJ Tobias McNulty had a suggestion on
the mailing list thread]:

> I'm +1 to doing *something.* Absent a louder reminder, I think it's
unrealistic to expect everyone to read the output of makemigrations all
the time.
>
> As others have said, I'm not sure `manage.py migrate` is the right time.
I think it's too late. The code may have already been committed, who knows
what machine the migrations are being run on, etc.
>
> During makemigrations, on the other hand, I don't see anything wrong
with formatted text or +/-, but I might go a step further. We already
prompt for things like renames and merges. Why not forcibly gain user
acceptance before creating a migration that deletes something? ...

Let's take this as an opportunity to give users better warnings to check
twice here.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:3>

Django

unread,
Dec 22, 2020, 5:25:36 PM12/22/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+--------------------------------------------
Reporter: Tom Forbes | Owner: Modestas Jakuska
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
-----------------------------+--------------------------------------------
Changes (by Modestas Jakuska):

* cc: Modestas Jakuska (added)
* owner: nobody => Modestas Jakuska
* status: new => assigned


Old description:

> Makemigrations should highlight destructive and potentially destructive
> operations in the console output. We advise that makemigrations is only a
> code generator people sometimes apply them without looking. Highlighting
> dangerous operations in the output will make them stand out, and might
> help them notice issues before they blindly apply.
>
> For example:
>
> {{{
> $ ./manage.py makemigrations ...
> Migrations for 'some_app':
> some_app/migrations/0002_delete.py
> - Delete model SomeModel
> + Add model AnotherModel
> ~ Alter field X on Y
> }}}
>
> We can use `-` as a prefix for known destructive operations, `+` for
> "safe" operations and `~` for possibly-destructive operations, colour

> coded as red, green and yellow respectively.


>
> Mailing list discussion: https://groups.google.com/d/msg/django-
> developers/A0m8YkPKpZo/Yx8l2P8EAQAJ

New description:

Hey, so I'm totally new to this ('contributing to open source, not Django
or coding). Can I just take this? Seems easy enough for a first Pull
Request :)

--

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:4>

Django

unread,
Dec 22, 2020, 5:29:09 PM12/22/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+--------------------------------------------
Reporter: Tom Forbes | Owner: Modestas Jakuska
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
-----------------------------+--------------------------------------------
Description changed by Modestas Jakuska:

Old description:

> Hey, so I'm totally new to this ('contributing to open source, not Django
> or coding). Can I just take this? Seems easy enough for a first Pull
> Request :)

New description:

Makemigrations should highlight destructive and potentially destructive
operations in the console output. We advise that makemigrations is only a
code generator people sometimes apply them without looking. Highlighting
dangerous operations in the output will make them stand out, and might
help them notice issues before they blindly apply.

For example:

{{{
$ ./manage.py makemigrations ...
Migrations for 'some_app':
some_app/migrations/0002_delete.py
- Delete model SomeModel
+ Add model AnotherModel
~ Alter field X on Y
}}}

We can use `-` as a prefix for known destructive operations, `+` for
"safe" operations and `~` for possibly-destructive operations, colour

coded as red, green and yellow respectively.


Mailing list discussion: https://groups.google.com/d/msg/django-
developers/A0m8YkPKpZo/Yx8l2P8EAQAJ

--

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:5>

Django

unread,
Dec 23, 2020, 1:20:45 PM12/23/20
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+------------------------------------
Reporter: Tom Forbes | Owner: (none)

Type: New feature | Status: new
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
-----------------------------+------------------------------------
Changes (by Modestas Jakuska):

* cc: Modestas Jakuska (removed)
* owner: Modestas Jakuska => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:6>

Django

unread,
Feb 11, 2021, 10:58:10 AM2/11/21
to django-...@googlegroups.com
#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
-----------------------------+-----------------------------------------
Changes (by Ramon Saraiva):

* owner: nobody => Ramon Saraiva


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:4>

Django

unread,
Feb 12, 2021, 9:10:33 AM2/12/21
to django-...@googlegroups.com
#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

unread,
Sep 24, 2022, 6:45:37 AM9/24/22
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+-----------------------------------------
Reporter: Tom Forbes | Owner: Ramon Saraiva
Type: New feature | Status: assigned
Component: Migrations | Version: dev

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 Bhuvnesh):

Anyone working on this issue?

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:6>

Django

unread,
Sep 24, 2022, 6:49:50 AM9/24/22
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+-----------------------------------------
Reporter: Tom Forbes | Owner: Ramon Saraiva
Type: New feature | Status: assigned
Component: Migrations | Version: dev
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
-----------------------------+-----------------------------------------
Changes (by Bhuvnesh):

* Attachment "colored-ops.jpg" added.

Colored migration operations

Django

unread,
Sep 25, 2022, 8:59:19 AM9/25/22
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+-----------------------------------------
Reporter: Tom Forbes | Owner: Ramon Saraiva
Type: New feature | Status: assigned
Component: Migrations | Version: dev
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 Bhuvnesh):

should i prepare a patch?

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:7>

Django

unread,
Sep 27, 2022, 8:00:06 PM9/27/22
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+------------------------------------
Reporter: Tom Forbes | Owner: (none)
Type: New feature | Status: new
Component: Migrations | Version: dev
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
-----------------------------+------------------------------------
Changes (by Ramon Saraiva):

* owner: Ramon Saraiva => (none)


* status: assigned => new


Comment:

Not sure, I'll deassign myself so you can take this one if you have a
patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:8>

Django

unread,
Sep 28, 2022, 4:26:47 PM9/28/22
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+------------------------------------
Reporter: Tom Forbes | Owner: Bhuvnesh

Type: New feature | Status: assigned
Component: Migrations | Version: dev
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
-----------------------------+------------------------------------
Changes (by Bhuvnesh):

* owner: (none) => Bhuvnesh


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:9>

Django

unread,
Oct 7, 2022, 4:09:07 PM10/7/22
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+------------------------------------
Reporter: Tom Forbes | Owner: (none)

Type: New feature | Status: new
Component: Migrations | Version: dev
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
-----------------------------+------------------------------------
Changes (by Bhuvnesh):

* owner: Bhuvnesh => (none)


* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:10>

Django

unread,
Jul 21, 2023, 6:38:55 PM7/21/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi

Type: New feature | Status: assigned
Component: Migrations | Version: dev
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
-----------------------------+---------------------------------------
Changes (by Amir Karimi):

* owner: (none) => Amir Karimi


* status: new => assigned


Comment:

I'd like to work on this issue. I have implemented it in the +/-/~ way. I
can add coloring too. I'll create its PR soon.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:11>

Django

unread,
Aug 17, 2023, 12:01:36 PM8/17/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
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 Amir Karimi):

I have prepared the feature. I wasn't sure coloring as highlighting is a
good idea so I added both prefixes (+,-,~) and colors.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:12>

Django

unread,
Sep 21, 2023, 9:20:41 AM9/21/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Natalia Bidart):

* has_patch: 0 => 1


Comment:

Amir, in order for the PR to appear in the review queue, the flag "has
patch" needs to be set (I'm setting it now). There are more details about
how to proceed with PRs and review feedback in
[https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/submitting-patches/#patch-style this link[.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:13>

Django

unread,
Sep 21, 2023, 4:49:50 PM9/21/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------

Comment (by Amir Karimi):

Replying to [comment:13 Natalia Bidart]:


> Amir, in order for the PR to appear in the review queue, the flag "has
patch" needs to be set (I'm setting it now). There are more details about
how to proceed with PRs and review feedback in
[https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/submitting-patches/#patch-style this link[.

Thnx Natalia for your notice. As it's kinda new feature, I just wanted to
add some docs about it, but I didn't find any post related to such a
feature that might be better to consider the community's opinion on the
Django forum. I wanna add a new topic about such a feature, and find out
if people see it as interesting or noisy.

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:14>

Django

unread,
Sep 27, 2023, 6:59:24 AM9/27/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


Comment:

Marking as "needs improvement" per [https://forum.djangoproject.com/t
/makemigrations-highlighter-interesting-or-noise/24039/6 Adam's comment].

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:15>

Django

unread,
Nov 1, 2023, 1:41:01 PM11/1/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Amir Karimi):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:16>

Django

unread,
Nov 2, 2023, 1:12:34 AM11/2/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1

* needs_docs: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:17>

Django

unread,
Nov 9, 2023, 6:41:54 AM11/9/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Amir Karimi):

* needs_better_patch: 1 => 0

* needs_docs: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:18>

Django

unread,
Nov 14, 2023, 12:05:50 AM11/14/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1
* needs_docs: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:19>

Django

unread,
Nov 17, 2023, 5:03:03 AM11/17/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Amir Karimi):

* needs_better_patch: 1 => 0
* needs_docs: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:20>

Django

unread,
Nov 29, 2023, 3:28:04 AM11/29/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:21>

Django

unread,
Dec 1, 2023, 6:25:03 AM12/1/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Amir Karimi):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:22>

Django

unread,
Dec 31, 2023, 6:38:30 AM12/31/23
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by David Wobrock):

* cc: David Wobrock (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:23>

Django

unread,
Jan 5, 2024, 2:58:10 AMJan 5
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:24>

Django

unread,
Jan 5, 2024, 6:26:01 AMJan 5
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Amir Karimi):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:25>

Django

unread,
Jan 17, 2024, 7:52:56 AMJan 17
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------------

Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:26>

Django

unread,
Jan 17, 2024, 2:41:52 PMJan 17
to django-...@googlegroups.com
#31700: Highlight destructive operations in makemigrations output
-----------------------------+---------------------------------------------
Reporter: Tom Forbes | Owner: Amir Karimi
Type: New feature | Status: closed
Component: Migrations | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"27a3eee72170f1eb994a213db985f42c6cf5f994" 27a3eee7]:
{{{
#!CommitTicketReference repository=""
revision="27a3eee72170f1eb994a213db985f42c6cf5f994"
Fixed #31700 -- Made makemigrations command display meaningful symbols for
each operation.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/31700#comment:27>

Reply all
Reply to author
Forward
0 new messages