xebia-functional / nine-cards-v2

An Open Source Android Launcher built with Scala on Android
http://www.9cards.io/
Other
182 stars 20 forks source link

Check this error when user logs in: #1241

Closed anamariamv closed 7 years ago

anamariamv commented 7 years ago

ERROR: duplicate key value violates unique constraint "users_pkey" Detail: Key (id)=(2) already exists.

diesalbla commented 7 years ago

This kind of error is rooted at Postgresql handling of serial types. It arises when a row is created using a value for the serial column larger than the latest used value.

This error can be reproduced in the localhost db as follows: