#26053: makemigrations generates a wrong type for a DurationField column on
postgresql
-------------------------------------+-------------------------------------
Reporter: benjellounayoub | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.9
(models, ORM) |
Severity: Normal | Resolution:
Keywords: makemigrations, | Triage Stage:
DurationField, postgresql, | Unreviewed
psycopg2 |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by benjellounayoub):
No, unfortunately it's not the case
For the following model
{{{
class Foo(models.Model):
bar = models.DurationField()
}}}
I have the following CreateModel in the generated migrations
{{{
...
operations = [
migrations.CreateModel(
name='Foo',
fields=[
('id', models.AutoField(auto_created=True,
primary_key=True, serialize=False, verbose_name='ID')),
('bar', models.FloatField(blank=True, default=0,
null=True)),
],
...
}}}
Can you test it with the 9.4 postgreSQL version instead of the 9.3 ? it's
maybe related to this part ...
--
Ticket URL: <https://code.djangoproject.com/ticket/26053#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.89a6e9fcbe2a9c9677073b4bc957585d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.