Changes between Version 3 and Version 4 of Ticket #31826


Ignore:
Timestamp:
Jul 25, 2020, 9:16:10 AM (4 years ago)
Author:
Iuri de Silvio
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31826 – Description

    v3 v4  
    1 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.
    2 
    3 The (same) constraint drop/create is a blocking operation for PostgreSQL, so it is an undesirable and unexpected behavior.
    4 
     1When 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.
Back to Top