Updated schema to refelect new email handling system.
This commit is contained in:
parent
635d7182b4
commit
06a417790a
@ -6,20 +6,6 @@
|
||||
-- Generation Time: Apr 16, 2012 at 10:32 PM
|
||||
-- Server version: 5.1.56
|
||||
-- PHP Version: 5.3.10-pl0-gentoo
|
||||
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
|
||||
--
|
||||
-- Database: `aatl`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@ -64,6 +50,45 @@ CREATE TABLE `blocks` (
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `email_queue`
|
||||
--
|
||||
|
||||
CREATE TABLE `email_queue` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`created` int(10) unsigned NOT NULL COMMENT 'The unix timestamp of when this message was created',
|
||||
`creator_id` int(10) unsigned DEFAULT NULL COMMENT 'Who created this message (NULL = system)',
|
||||
`deleted` int(10) unsigned DEFAULT NULL COMMENT 'Timestamp of message deletion',
|
||||
`deleted_id` int(10) unsigned DEFAULT NULL COMMENT 'Who deleted the message?',
|
||||
`subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'The message subject',
|
||||
`body` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'The message body',
|
||||
`format` enum('text') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'text' COMMENT 'Message format, for possible extension',
|
||||
`status` enum('pending','sent','failed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pending' COMMENT 'What is the status of the message?',
|
||||
`send_after` int(10) unsigned DEFAULT NULL COMMENT 'Send message after this time (NULL = as soon as possible)',
|
||||
`sent_time` int(10) unsigned DEFAULT NULL COMMENT 'When was the last send attempt?',
|
||||
`error_message` text COLLATE utf8_unicode_ci COMMENT 'Error message if sending failed.',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `created` (`created`),
|
||||
KEY `deleted` (`deleted`),
|
||||
KEY `result` (`status`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores mails to be sent through Emailer:: modules';
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `email_recipients`
|
||||
--
|
||||
|
||||
CREATE TABLE `email_recipients` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`email_id` int(10) unsigned NOT NULL COMMENT 'ID of the email this is a recipient entry for',
|
||||
`recipient_id` int(10) unsigned NOT NULL COMMENT 'ID of the user sho should get the email',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `email_id` (`email_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores the recipients of emails';
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `log`
|
||||
--
|
||||
@ -125,7 +150,6 @@ CREATE TABLE `session_keys` (
|
||||
KEY `last_login` (`last_login`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Autologin keys';
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
Loading…
x
Reference in New Issue
Block a user