Changes between Initial Version and Version 1 of Ticket #27676, comment 8
- Timestamp:
- Nov 28, 2023, 7:44:44 AM (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27676, comment 8
initial v1 7 7 8 8 Same for CHAR and VARCHAR. 9 10 BTW, 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.