Commit 83b3844f authored by Jean-Paul Smets's avatar Jean-Paul Smets

added date support


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@458 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c36579bb
......@@ -10,6 +10,7 @@ class_file:
<params></params>
CREATE TABLE `message` (
`uid` int(11) NOT NULL auto_increment,
`date` datetime,
`path` VARCHAR(255),
`method_id` VARCHAR(40),
`processing_node` INT DEFAULT -1,
......@@ -17,9 +18,10 @@ CREATE TABLE `message` (
`priority` INT DEFAULT 0,
`message` BLOB,
PRIMARY KEY (`uid`),
KEY `date` (`date`),
KEY `path` (`path`),
KEY `method_id` (`method_id`),
KEY `processing_node` (`processing_node`),
KEY `processing` (`processing`),
KEY `priority` (`priority`),
) TYPE = InnoDB;
\ No newline at end of file
) TYPE = InnoDB;
......@@ -14,7 +14,7 @@ SELECT * FROM
WHERE
processing <> 1
<dtml-if processing_node> AND processing_node = <dtml-sqlvar processing_node type="int"></dtml-if>
<dtml-if priority> AND priority = <dtml-sqlvar priority type="int"> </dtml-if>
<dtml-if priority> AND priority = <dtml-sqlvar priority type="int"> </dtml-if>
ORDER BY
priority
\ No newline at end of file
priority, date
......@@ -20,4 +20,6 @@ WHERE
<dtml-if path>AND path = <dtml-sqlvar path type="string"></dtml-if>
<dtml-if method_id>AND method_id = <dtml-sqlvar method_id type="string"></dtml-if>
GROUP BY
path, method_id, processing_node, processing
\ No newline at end of file
path, method_id, processing_node, processing
ORDER BY
priority, date
\ No newline at end of file
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