Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erase_db() doesn't reset increment #16

Open
puredazzle opened this issue Mar 31, 2016 · 3 comments
Open

erase_db() doesn't reset increment #16

puredazzle opened this issue Mar 31, 2016 · 3 comments

Comments

@puredazzle
Copy link

Hello! Shouldn't erase_db() reset the autoIncrement also?

@waleedarshad-vf
Copy link

@puredazzle erase_db() working for you???

@puredazzle
Copy link
Author

It did when I tested 4 months ago. Haven't used react native or the plugin since.

@kylegoetz
Copy link

Looking at the code, it appears erase_db is meant to be taken as "erase the data in the DB" rather than "erase the database itself." So I would say it's not meant to reset the autoinc. If it erased the db, then you'd have to create the db all over again before adding anything. That would be something you'd expect the autoinc to go back to 0 for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants