Changes between Initial Version and Version 1 of Ticket #27676, comment 8


Ignore:
Timestamp:
Nov 28, 2023, 7:44:44 AM (6 months ago)
Author:
Tobias Krönke

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27676, comment 8

    initial v1  
    77
    88Same for CHAR and VARCHAR.
     9
     10BTW, there is an annoying workaround for this for now: in a first migration, we add the new column by adding `my_field = models.TextField(blank=True, default=None)` and then we change it to `my_field = models.TextField(blank=True)` and generate another migration. And guess what, that 2nd migration is a `no-op`. That's because the `default` is actually only a django thing, not a DB thing.
Back to Top