Skip to content

Commit 3bea834

Browse files
authored
Merge pull request #18362 from mozilla/fxa-11063-email-types-catch-up
chore(db): add more email types
2 parents 00d2adc + c5e3e46 commit 3bea834

3 files changed

Lines changed: 54 additions & 1 deletion

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
SET NAMES utf8mb4 COLLATE utf8mb4_bin;
2+
3+
CALL assertPatchLevel('160');
4+
5+
INSERT INTO emailTypes (emailType) VALUES
6+
('cadReminderFirst'),
7+
('cadReminderSecond'),
8+
('fraudulentAccountDeletion'),
9+
('inactiveAccountFinalWarning'),
10+
('inactiveAccountFirstWarning'),
11+
('inactiveAccountSecondWarning'),
12+
('passwordForgotOtp'),
13+
('passwordResetWithRecoveryKeyPrompt'),
14+
('postAddLinkedAccount'),
15+
('postAddRecoveryPhone'),
16+
('postChangeAccountRecovery'),
17+
('postChangeRecoveryPhone'),
18+
('postRemoveRecoveryPhone'),
19+
('postSigninRecoveryCode'),
20+
('postSigninRecoveryPhone'),
21+
('subscriptionAccountReminderFirst'),
22+
('subscriptionAccountReminderSecond'),
23+
('verificationReminderFinal'),
24+
('verificationReminderFirst'),
25+
('verificationReminderSecond');
26+
27+
UPDATE dbMetadata SET value = '161' WHERE name = 'schema-patch-level';
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
-- SET NAMES utf8mb4 COLLATE utf8mb4_bin;
2+
--
3+
-- DELETE FROM emailTypes WHERE emailType IN (
4+
-- 'cadReminderFirst',
5+
-- 'cadReminderSecond',
6+
-- 'fraudulentAccountDeletion',
7+
-- 'inactiveAccountFinalWarning',
8+
-- 'inactiveAccountFirstWarning',
9+
-- 'inactiveAccountSecondWarning',
10+
-- 'passwordForgotOtp',
11+
-- 'passwordResetWithRecoveryKeyPrompt',
12+
-- 'postAddLinkedAccount',
13+
-- 'postAddRecoveryPhone',
14+
-- 'postChangeAccountRecovery',
15+
-- 'postChangeRecoveryPhone',
16+
-- 'postRemoveRecoveryPhone',
17+
-- 'postSigninRecoveryCode',
18+
-- 'postSigninRecoveryPhone',
19+
-- 'subscriptionAccountReminderFirst',
20+
-- 'subscriptionAccountReminderSecond',
21+
-- 'verificationReminderFinal',
22+
-- 'verificationReminderFirst',
23+
-- 'verificationReminderSecond'
24+
-- );
25+
--
26+
-- UPDATE dbMetadata SET value = '160' WHERE name = 'schema-patch-level';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"level": 160
2+
"level": 161
33
}

0 commit comments

Comments
 (0)