This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(account): update stored procedures to be more replication friendly
- Loading branch information
Showing
4 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
SET NAMES utf8mb4 COLLATE utf8mb4_bin; | ||
|
||
CALL assertPatchLevel('86'); | ||
|
||
CREATE PROCEDURE `verifyTokensWithMethod_3` ( | ||
IN `tokenIdArg` BINARY(32), | ||
IN `verificationMethodArg` INT, | ||
IN `verifiedAtArg` BIGINT(1) | ||
) | ||
BEGIN | ||
DECLARE EXIT HANDLER FOR SQLEXCEPTION | ||
BEGIN | ||
ROLLBACK; | ||
RESIGNAL; | ||
END; | ||
|
||
-- Update session verification methods | ||
UPDATE `sessionTokens` SET verificationMethod = verificationMethodArg, verifiedAt = verifiedAtArg | ||
WHERE tokenId = tokenIdArg; | ||
|
||
END; | ||
|
||
UPDATE dbMetadata SET value = '87' WHERE name = 'schema-patch-level'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- SET NAMES utf8mb4 COLLATE utf8mb4_bin; | ||
|
||
-- DROP PROCEDURE verifyTokensWithMethod_3; | ||
|
||
-- UPDATE dbMetadata SET value = '86' WHERE name = 'schema-patch-level'; |