Open GoogleCodeExporter opened 8 years ago
thanks for the support.
unfortunately here i don't have a postgres environment where can i actually
test queries, so could you please help me and tell which query may reset the
autoincrement to avoid this problem?
thanks a lot :D
Original comment by nic...@creationgears.com
on 5 Aug 2011 at 8:08
currently, i think of two ways:
the first and simple one, is to change the ROOT constant from 1 to 0
second fix is to change sequence initial value to 2, to avoid conflict with
root id
i.e. executing SELECT nextval('usergroups_user_id_seq', 2) somewhere before
trying to add the USER group (bacuase, manual setting of ROOT group id, will
not trigger sequence at all, and we need to set the proper initial value
manually too!)
if you want my help somewhere in fixing this issue, just let me know.
Original comment by APajooha...@gmail.com
on 6 Aug 2011 at 7:47
Original issue reported on code.google.com by
APajooha...@gmail.com
on 4 Aug 2011 at 6:51