From b2e6f68a22d854bc67959c4926c72f665c5d26eb Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 30 Jul 2017 19:38:20 +0200 Subject: [PATCH] Describe required changes to SQLite schema in migration guide --- Migration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Migration.md b/Migration.md index 181c587..b90093f 100644 --- a/Migration.md +++ b/Migration.md @@ -43,6 +43,13 @@ $ composer update delight-im/auth ALTER TABLE users ADD COLUMN "roles_mask" INTEGER NOT NULL CHECK ("roles_mask" >= 0) DEFAULT "0", 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.