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. |
| 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. The 1st migration adds the column without default expression. 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. |