#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):

 Replying to [comment:1 charettes]:

 I think you are using the Django's version 1.10.dev for your test and not
 the 1.9

 > Hi benjellounayoub,
 >
 > I couldn't reproduce against PostgreSQL 9.3 and 9.3 on Ubuntu with
 Django 1.9.1 and master using a [https://github.com/charettes/django-
 ticketing/commit/b5ddf8554d41d23474f48ae3bf156af5f0f0b9ca similar test
 application].
 >
 > {{{
 > \d ticket_26053_foo;
 >                           Table "public.ticket_26053_foo"
 >  Column |   Type   |                           Modifiers
 >
 
--------+----------+---------------------------------------------------------------
 >  id     | integer  | not null default
 nextval('ticket_26053_foo_id_seq'::regclass)
 >  bar    | interval | not null
 > Indexes:
 >     "ticket_26053_foo_pkey" PRIMARY KEY, btree (id)
 > }}}
 >
 > Can you confirm the generated migration's `CreateModel` operation used a
 `models.DurationField()` for its `'bar'` field?

--
Ticket URL: <https://code.djangoproject.com/ticket/26053#comment:6>
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.fac251fb7e44456b85291119368b3d52%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to