Modify ↓
Ticket #151 (closed defect: wontfix)
Auto resets my databases default for datetime values everytime I migrate
| Reported by: | erik@… | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6 |
| Component: | migrations | Version: | 0.6-pre |
| Keywords: | default auto | Cc: |
Description
Hi,
Everytime I run an "auto" migration, South updates my DateTimeField? default value in my database to the current datetime.
My model is setup like this:
created = models.DateTimeField?(default=datetime.datetime.now, editable=False)
South should ignore the default in this case.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Do you mean it makes a migration with alter_column in it each time? Could you attach one?