Changes between Initial Version and Version 1 of Ticket #17415


Ignore:
Timestamp:
Dec 18, 2011, 12:55:45 PM (12 years ago)
Author:
Aymeric Augustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17415

    • Property Type UncategorizedBug
  • Ticket #17415 – Description

    initial v1  
    88And this parameter is different in any other table generated by the ORM.
    99
     10{{{
    1011Name    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)?
    1112django_site_id_seq      1       1       1       9223372036854775807     1       1       1       No      No
    12 
     13}}}
    1314
    1415What happens then?
    1516If you go to the admin and want to add a second Site, when u save, you get the exception:
    1617
     18{{{
    1719Exception Type:         IntegrityError
    1820
    1921duplicate key value violates unique constraint "django_site_pkey"
    2022DETAIL:  Key (id)=(1) already exists.
     23}}}
    2124
    2225At 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
Back to Top