mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 14:17:26 +02:00
Describe required changes to SQLite schema in migration guide
This commit is contained in:
@@ -43,6 +43,13 @@ $ composer update delight-im/auth
|
|||||||
ALTER TABLE users
|
ALTER TABLE users
|
||||||
ADD COLUMN "roles_mask" INTEGER NOT NULL CHECK ("roles_mask" >= 0) DEFAULT "0",
|
ADD COLUMN "roles_mask" INTEGER NOT NULL CHECK ("roles_mask" >= 0) DEFAULT "0",
|
||||||
ADD COLUMN "resettable" INTEGER NOT NULL CHECK ("resettable" >= 0) DEFAULT "1";
|
ADD COLUMN "resettable" INTEGER NOT NULL CHECK ("resettable" >= 0) DEFAULT "1";
|
||||||
|
|
||||||
|
ALTER TABLE users_confirmations
|
||||||
|
ADD COLUMN "user_id" INTEGER CHECK ("user_id" >= 0);
|
||||||
|
|
||||||
|
UPDATE users_confirmations SET user_id = (
|
||||||
|
SELECT id FROM users WHERE email = users_confirmations.email
|
||||||
|
) WHERE user_id IS NULL;
|
||||||
```
|
```
|
||||||
|
|
||||||
* The two methods `forgotPassword` and `resetPassword` may now throw an additional `\Delight\Auth\ResetDisabledException` if the user has disabled password resets for their account.
|
* The two methods `forgotPassword` and `resetPassword` may now throw an additional `\Delight\Auth\ResetDisabledException` if the user has disabled password resets for their account.
|
||||||
|
Reference in New Issue
Block a user