Skip to content

Commit eb57ee4

Browse files
committed
WIP
1 parent d9aa6c0 commit eb57ee4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/emailqueue.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CREATE TABLE `emails` (
1919
`to` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'The email address of the recipient.',
2020
`replyto` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'The email addess where replies to this message will be sent by default.',
2121
`replyto_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'The name where this email will be replied by default.',
22+
`sender` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'The Sender email address for bounces and SMTP delivery emails.',
2223
`subject` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'The email''s subject',
2324
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'The content of the email. If HTML, be sure to set the is_html field to 1',
2425
`content_nonhtml` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'Optional. A plain-text version of the email for old clients.',
@@ -44,7 +45,8 @@ CREATE TABLE `blacklist` (
4445

4546
ALTER TABLE `blacklist`
4647
ADD PRIMARY KEY (`id`),
47-
ADD UNIQUE KEY `id` (`id`);
48+
ADD UNIQUE KEY `id` (`id`),
49+
ADD KEY `email` (`email`(5));
4850

4951
ALTER TABLE `emails`
5052
ADD PRIMARY KEY (`id`),

0 commit comments

Comments
 (0)