#23401: "django_admin_log"."object_id" has wrong type in djangoproject database
-----------------------------------------------+------------------------
               Reporter:  timgraham            |          Owner:  nobody
                   Type:  Bug                  |         Status:  new
              Component:  *.djangoproject.com  |        Version:
               Severity:  Normal               |       Keywords:
           Triage Stage:  Unreviewed           |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+------------------------
 In the production database, `"django_admin_log"."object_id"` has type
 `integer` instead of `text` (`LogEntry.object_id` is a `TextField` and has
 been since at least magic removal; I guess it was `IntegerField` before
 and never properly migrated). Can we manually run a query to change the
 type?

 Discovered this today when James couldn't create the release objects in
 the admin. Checking the traceback it was `DataError: invalid input syntax
 for integer: "1.4.15"`

 Traced it down and had to roll back this in the meantime:
 
https://github.com/django/djangoproject.com/commit/016c7042134bde30cf5d2b67b5bbf723b4d7bc15

--
Ticket URL: <https://code.djangoproject.com/ticket/23401>
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/052.43091f14dde3cd0b925a4c7c9c9b486c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to