Changes between Initial Version and Version 1 of Ticket #17415
- Timestamp:
- Dec 18, 2011, 12:55:45 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17415
- Property Type Uncategorized → Bug
-
Ticket #17415 – Description
initial v1 8 8 And this parameter is different in any other table generated by the ORM. 9 9 10 {{{ 10 11 Name Start value Last value Increment by Max value Min value Cache value Log count Can cycle? Will increment last value before returning next value (is_called)? 11 12 django_site_id_seq 1 1 1 9223372036854775807 1 1 1 No No 12 13 }}} 13 14 14 15 What happens then? 15 16 If you go to the admin and want to add a second Site, when u save, you get the exception: 16 17 18 {{{ 17 19 Exception Type: IntegrityError 18 20 19 21 duplicate key value violates unique constraint "django_site_pkey" 20 22 DETAIL: Key (id)=(1) already exists. 23 }}} 21 24 22 25 At this point, the add in the DB failed, but the ORM just changed the flag in the Sequence django_site_id_seq.is_called = Yes