rocket_auth icon indicating copy to clipboard operation
rocket_auth copied to clipboard

Use "AUTOINCREMENT" for user table primary key

Open yzernik opened this issue 1 year ago • 0 comments

I noticed in my app that after I delete a user, when I create a new user, the new user has the same id as the deleted user.

This behavior is not expected. It can be avoided if this line is changed to include AUTOINCREMENT: https://github.com/tvallotton/rocket_auth/blob/ef445dfe22c6738e95c21f5710f85ab1136bdb06/src/db/sqlite/sql.rs#L3

yzernik avatar Jul 29 '22 04:07 yzernik