Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit 23cbc61

Browse files
authored
fix(codes): remove current recovery codes before applying migration (#337), r=@rfk
1 parent 2ca7d9f commit 23cbc61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/db/schema/patch-078-079.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
SET NAMES utf8mb4 COLLATE utf8mb4_bin;
22

3+
-- Since we are altering the size of the `codeHash` column
4+
-- we need to make sure that the column is empty before it can be applied
5+
DELETE from recoveryCodes;
6+
37
ALTER TABLE recoveryCodes MODIFY COLUMN codeHash BINARY(32);
48

59
ALTER TABLE recoveryCodes ADD COLUMN salt BINARY(32);

0 commit comments

Comments
 (0)