Re: [Django] #30614: Add constraint name validation to system checks.

2019-07-08 Thread Django
#30614: Add constraint name validation to system checks.
-+-
 Reporter:  Can Sarıgöl  |Owner:  Can
 Type:   |  Sarıgöl
  Cleanup/optimization   |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  wontfix
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by felixxm):

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


-- 
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/068.b2bbb9d1c75fe1cceac8db0a4de4514a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30614: Add constraint name validation to system checks.

2019-07-05 Thread Django
#30614: Add constraint name validation to system checks.
-+-
 Reporter:  Can Sarıgöl  |Owner:  Can
 Type:   |  Sarıgöl
  Cleanup/optimization   |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Old description:



New description:

 Constraints names cannot start with an underscore or a number and cannot
 be longer than 30 characters on Oracle. We can restrict them with system
 checks for cross-database compatibility.

--

Comment (by felixxm):

 After double-thinking I'm not sure if we want this change. First of all it
 is backward incompatible and it is not a minor incompatibility.
 Constraints have been introduced in Django 2.2 and for all databases
 (except Oracle) names starting with an underscore `_` or a digit, or with
 a name of length greater than 30 characters are valid (63 characters on
 PostgreSQL, 64 on MySQL). I agree that it is a inconsistency between
 constraints and indexes policy but still we need to be careful with
 introducing incompatibilities.

-- 
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/068.efcee8628e46bbfb7501ab4cbf6bbfb2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30614: Add constraint name validation to system checks.

2019-07-05 Thread Django
#30614: Add constraint name validation to system checks.
-+-
 Reporter:  Can Sarıgöl  |Owner:  Can
 Type:   |  Sarıgöl
  Cleanup/optimization   |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Can Sarıgöl):

 * owner:  nobody => Can Sarıgöl
 * status:  new => assigned
 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/11541 PR]

-- 
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/068.c2b413c1316a3897f2bc6b9ca099b080%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.