Re: [Django] #23748: inspectdb should introspect autofield

2019-01-09 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  Nick Pope
 Type:  New feature  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

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


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


Re: [Django] #23748: inspectdb should introspect autofield

2019-01-09 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  Nick Pope
 Type:  New feature  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"a35d2a4510d5beec398b1007aaa26492d6aedf97" a35d2a45]:
 {{{
 #!CommitTicketReference repository=""
 revision="a35d2a4510d5beec398b1007aaa26492d6aedf97"
 Refs #23748 -- Added AutoField introspection for SQLite.
 }}}

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


Re: [Django] #23748: inspectdb should introspect autofield

2019-01-08 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  Nick Pope
 Type:  New feature  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Nick Pope):

 * owner:  nobody => Nick Pope
 * status:  new => assigned


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


Re: [Django] #23748: inspectdb should introspect autofield

2019-01-08 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by felixxm):

 * has_patch:  0 => 1


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


Re: [Django] #23748: inspectdb should introspect autofield

2019-01-07 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Nick Pope):

 Replying to [comment:10 Tim Graham]:
 > It looks like the remaining task for this ticket is to add introspection
 on SQLite (if the column definition includes AUTOINCREMENT).

 So I've looked into rounding out the introspection support for AutoField -
 here is a [https://github.com/django/django/pull/10825 PR] for SQLite.

 It really turns out to be quite simple. According to the documentation
 `AUTOINCREMENT` can only be used with `INTEGER PRIMARY KEY` which is
 automatically an alias of `ROWID` that actually provides unique
 incremented values. `AUTOINCREMENT` merely changes the algorithm used, but
 is usually not necessary and ought to be avoided. See
 [https://www.sqlite.org/autoinc.html here] and
 [https://www.sqlite.org/lang_createtable.html#rowid here] for details.

 There are two things to be aware of:

 1. It is not possible to introspect `BigAutoField` as `BIGINT PRIMARY KEY`
 cannot have `AUTOINCREMENT` and does not alias `ROWID`. I disabled the
 test for SQLite.
 2. No effort is made to check for composite primary keys, but I don't
 think we do for other backends. We just assume the first `INTEGER PRIMARY
 KEY` column is the `AutoField`.

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


Re: [Django] #23748: inspectdb should introspect autofield

2017-07-14 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham):

 It looks like the remaining task for this ticket is to add introspection
 on SQLite (if the column definition includes AUTOINCREMENT).

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


Re: [Django] #23748: inspectdb should introspect autofield

2017-07-14 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  Paul Dejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  inspectdb| Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by felixxm):

 * version:  1.7 => master


Comment:

 In
 
[https://github.com/django/django/commit/9af6c97504ef2b06dd5292d03ea94d3eb5d8c4d6
 9af6c97504ef2b06dd5292d03ea94d3eb5d8c4d6]

 Added AutoField introspection on Oracle.

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


Re: [Django] #23748: inspectdb should introspect autofield

2014-11-24 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  paulcdejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  inspectdb|  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by timgraham):

 * has_patch:  1 => 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/069.ef1d272bb0c43d6e49fdb30b77919b9b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23748: inspectdb should introspect autofield

2014-11-20 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  paulcdejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  inspectdb|  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by Claude Paroz ):

 In [changeset:"11662022be261d9a926b763e9fecc9f55ac3514a"]:
 {{{
 #!CommitTicketReference repository=""
 revision="11662022be261d9a926b763e9fecc9f55ac3514a"
 Added AutoField introspection for MySQL

 Refs #23748.
 }}}

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


Re: [Django] #23748: inspectdb should introspect autofield

2014-11-20 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  paulcdejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  inspectdb|  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by Claude Paroz ):

 In [changeset:"1a63093e22a18688914a82651c461e2ea89cd564"]:
 {{{
 #!CommitTicketReference repository=""
 revision="1a63093e22a18688914a82651c461e2ea89cd564"
 Added AutoField introspection for PostgreSQL

 Refs #23748.
 }}}

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


Re: [Django] #23748: inspectdb should introspect autofield

2014-11-19 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  paulcdejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  inspectdb|  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by claudep):

 * has_patch:  0 => 1
 * stage:  Someday/Maybe => Accepted


Comment:

 PR for MySQL and PostgreSQL: https://github.com/django/django/pull/3579

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


Re: [Django] #23748: inspectdb should introspect autofield (was: inspectdb converts auto increment primary keys into primary key models.IntegerField() rather than primary key models.AutoField())

2014-11-13 Thread Django
#23748: inspectdb should introspect autofield
-+-
 Reporter:  paulcdejean  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:  inspectdb|  Someday/Maybe
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by collinanderson):

 * status:  closed => new
 * resolution:  invalid =>
 * component:  Utilities => Database layer (models, ORM)
 * type:  Uncategorized => New feature
 * stage:  Unreviewed => Someday/Maybe


Comment:

 Opening this for if someone wants to implement the introspection. (Though,
 it's not a bug.)

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