#31826: AlterField with only db_column changed should be a noop
-------------------------------------+-------------------------------------
     Reporter:  Iuri de Silvio       |                    Owner:  Iuri de
         Type:                       |  Silvio
  Cleanup/optimization               |                   Status:  assigned
    Component:  Migrations           |                  Version:  3.0
     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 Iuri de Silvio:

Old description:

> When I change: `pink = models.Integer(default=0)` to `pink =
> models.Integer(default=0, db_column="pink")` the migration recreate
> constraints if it is an FK or even reconstruct the table (SQLite), but
> nothing really changed.
>
> The (same) constraint drop/create is a blocking operation for PostgreSQL,
> so it is an undesirable and unexpected behavior.

New description:

 When I change `pink = models.Integer(default=0)` to `pink =
 models.Integer(default=0, db_column="pink")` the migration drop/create the
 same constraints when it is an FK or even reconstruct the table (SQLite),
 but nothing really changed. The constraint drop/create is a blocking
 operation for PostgreSQL, so it is an undesirable and unexpected behavior.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31826#comment:4>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.8a5fd2360173862c8df4a03965b0a21f%40djangoproject.com.

Reply via email to