Re: [Django] #23570: Schema editor drops DEFAULT from columns for backends that do support it

2014-09-30 Thread Django
#23570: Schema editor drops DEFAULT from columns for backends that do support it
-+-
 Reporter:  mpessas  |Owner:  mpessas
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |   Resolution:  invalid
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * status:  assigned => closed
 * resolution:   => invalid


Comment:

 The idea is that Django shouldn't leave `DEFAULT` values in the database
 (see #23043). A default is only used in the `ADD COLUMN` SQL so that a
 field can be added as non-null.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.66d1acd84bbfb272d7e64c43bc1ae57a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23570: Schema editor drops DEFAULT from columns for backends that do support it

2014-09-29 Thread Django
#23570: Schema editor drops DEFAULT from columns for backends that do support it
-+-
 Reporter:  mpessas  |Owner:  mpessas
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by mpessas):

 Fix in https://github.com/django/django/pull/3292

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.e84bcb653aec83aab8fe615aea14cd42%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #23570: Schema editor drops DEFAULT from columns for backends that do support it

2014-09-29 Thread Django
#23570: Schema editor drops DEFAULT from columns for backends that do support it
--+
 Reporter:  mpessas   |  Owner:  nobody
 Type:  Bug   | Status:  new
Component:  Database layer (models, ORM)  |Version:  master
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  1
Easy pickings:  0 |  UI/UX:  0
--+
 The schema editor makes a check after a `SET DEFAULT` is issued for a
 column: it ''seems'' it wants to check, if the backend does not support
 DEFAULTs for a column with `skip_default` and drop it, if so.

 However, the logic is inverted.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.c2b6930a5f7ac7cd68a35cf59dc09bfd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23570: Schema editor drops DEFAULT from columns for backends that do support it

2014-09-29 Thread Django
#23570: Schema editor drops DEFAULT from columns for backends that do support it
-+-
 Reporter:  mpessas  |Owner:  mpessas
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by mpessas):

 * status:  new => assigned
 * needs_docs:   => 0
 * owner:  nobody => mpessas
 * needs_tests:   => 0
 * needs_better_patch:   => 0


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.01ad87fb89e82c3487344fa0ae31cfd2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.