Commit 921e598b authored by Vincent Pelletier's avatar Vincent Pelletier

Remove unneeded differences sompared to SQLDict_createMessageTable:

 - uppercase type definition
 - explicit [NOT] NULL column type definition
 - shorten INT types when possible
 - remove index names
 - remove extra space
 - removed unused indexes on date and processing_date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18422 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c7ec24c
......@@ -9,22 +9,20 @@ class_file:
</dtml-comment>
<params></params>
CREATE TABLE `message_queue` (
`uid` int(11) NOT NULL,
`date` datetime,
`path` VARCHAR(255),
`method_id` VARCHAR(255),
`processing_node` INT DEFAULT -1,
`processing` INT DEFAULT 0,
`processing_date` datetime,
`priority` INT DEFAULT 0,
`tag` VARCHAR(255),
`message` LONGBLOB,
PRIMARY KEY (`uid`),
KEY `date` (`date`),
KEY `path` (`path`),
KEY `method_id` (`method_id`),
`uid` INT UNSIGNED NOT NULL,
`date` DATETIME NOT NULL,
`path` VARCHAR(255) NOT NULL,
`method_id` VARCHAR(255) NOT NULL,
`processing_node` SMALLINT NOT NULL DEFAULT -1,
`processing` TINYINT NOT NULL DEFAULT 0,
`processing_date` DATETIME,
`priority` TINYINT NOT NULL DEFAULT 0,
`tag` VARCHAR(255) NOT NULL,
`message` LONGBLOB NOT NULL,
PRIMARY KEY (`uid`),
KEY (`path`),
KEY (`method_id`),
KEY `processing_node_processing` (`processing_node`, `processing`),
KEY `processing_date` (`processing_date`),
KEY `priority` (`priority`),
KEY `tag` (`tag`)
KEY (`priority`),
KEY (`tag`)
) TYPE = InnoDB;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment