Skip to content

Going from 0.4.0 -> 0.6.0: requiring database changes? #9

Answered by CrawlerCode
AlecDusheck asked this question in Q&A
Discussion options

You must be logged in to vote

Previously, this plugin always added session and verification token tables. Starting from 0.5.0, the plugin determines whether you are using these features and adds the fields/tables conditionally. For this reason, the database schema is changed and you must create a migration. However, please check whether this is correct before migrating.

user_sessions

This is only required if you are using the Auth.js database session strategy (session.strategy = database). The default setting is jwt. Otherwise, this table is no longer required and could be removed.

users_verification_tokens

The verification tokens table is only required if you use Auth.js email provider / magic links. If you do not us…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AlecDusheck
Comment options

@CrawlerCode
Comment options

Answer selected by AlecDusheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants