Saturday, June 10, 2017

Re: Problems with migrations cleaning up a date field

On Friday 09 June 2017 18:08:39 Lee Hinde wrote:

> I'm having problems with a migration after cleaning up an oddity with

> a date field and I'm not sure how to fix it. Any advice appreciated.

>

> I made this change to a date field:

>

> - start_date = models.DateField(db_index=True, default=False,

> - help_text="The date enrollment can

> begin this Season.")

 

Apparently, this goes through, even though it's not a valid default for a date field (tested with 1.11.2). So that is the bug in the migrations system.

 

Is it possible for you to rollback to before this migration or has this hit production already?

--

Melvyn Sopacua

No comments:

Post a Comment