-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
45 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
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
DO $$ | ||
DECLARE | ||
organization_internal_id integer; | ||
user_current_profile text; | ||
device_invitation_claimer_human_email text; | ||
user_invitation_claimer_email text; | ||
BEGIN | ||
SELECT _id | ||
INTO organization_internal_id | ||
|
@@ -21,7 +21,22 @@ BEGIN | |
ON user_.human = human._id | ||
WHERE | ||
invitation.organization = organization_internal_id | ||
AND invitation.token = 'e0000000000000000000000000000002'; | ||
AND invitation.token = 'e0000000000000000000000000000002' | ||
AND invitation.user_invitation_claimer_email IS NULL; | ||
|
||
ASSERT device_invitation_claimer_human_email = '[email protected]', FORMAT('Bad invitation migration: `%s`', device_invitation_claimer_human_email); | ||
|
||
-- Ensure that the `device_invitation_claimer` column is NULL for the user invitations | ||
SELECT invitation.user_invitation_claimer_email | ||
INTO user_invitation_claimer_email | ||
FROM invitation | ||
WHERE | ||
invitation.organization = organization_internal_id | ||
AND invitation.token = 'e0000000000000000000000000000001' | ||
AND invitation.device_invitation_claimer IS NULL; | ||
|
||
ASSERT user_invitation_claimer_email = '[email protected]', FORMAT('Bad invitation migration: `%s`', user_invitation_claimer_email); | ||
|
||
|
||
|
||
END$$; |
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