From 4fd37f079bb75024b46f0d285efbb66f0b1692e6 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 7 Aug 2017 23:20:34 +0200 Subject: [PATCH] Describe required changes to SQLite schema in migration guide --- Migration.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Migration.md b/Migration.md index 69cc0f2..4a95564 100644 --- a/Migration.md +++ b/Migration.md @@ -66,6 +66,17 @@ $ composer update delight-im/auth ) WHERE user_id IS NULL; CREATE INDEX "users_confirmations.user_id" ON "users_confirmations" ("user_id"); + + DROP TABLE users_throttling; + + CREATE TABLE "users_throttling" ( + "bucket" VARCHAR(44) PRIMARY KEY NOT NULL, + "tokens" REAL NOT NULL CHECK ("tokens" >= 0), + "replenished_at" INTEGER NOT NULL CHECK ("replenished_at" >= 0), + "expires_at" INTEGER NOT NULL CHECK ("expires_at" >= 0) + ); + + CREATE INDEX "users_throttling.expires_at" ON "users_throttling" ("expires_at"); ``` * The two methods `confirmEmail` and `confirmEmailAndSignIn` may now throw an additional `\Delight\Auth\UserAlreadyExistsException` if an attempt has been made to change the email address to an address that has become occupied in the meantime.