Going from 0.4.0 -> 0.6.0: requiring database changes? #9
-
|
Just want to start off with- thank you for the awesome project, this is really useful. We're currently running 0.4.0 on Payload 3.19.0. When we bumped our This is a little scary to me, just because I'm not super aware of what this does besides dropping some tables. I didn't see anything in the release notes either. Is this something intentional? What side-effects will this have in production? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Previously, this plugin always added session and verification token tables. Starting from user_sessionsThis is only required if you are using the Auth.js database session strategy ( users_verification_tokensThe verification tokens table is only required if you use Auth.js email provider / magic links. If you do not use any of these providers, the table can also be deleted. |
Beta Was this translation helpful? Give feedback.
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 isjwt. 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…