denodb: problem with db.sync()

error: Uncaught (in promise) SqliteError: index email already exists

I have a subscriptions table with email as a field.

Using db.sync() causes this error. I’m not sure if I need it. It appears to work without it, but I’m not sure.

Can someone clarify the point of db.sync()

About this issue

Commits related to this issue

Most upvoted comments

I have the same issue, db.sync() throws an error when drop set to false.