Commit fa84b578 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Decided to go back to a boolean again.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4858 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70d87485
...@@ -14,7 +14,7 @@ class_file: ...@@ -14,7 +14,7 @@ class_file:
# #
CREATE TABLE `record` ( CREATE TABLE `record` (
`path` varchar(255) NOT NULL default '', `path` varchar(255) NOT NULL default '',
`method_id` VARCHAR(255) NOT NULL default 'reindexObject', `catalog` BOOT NOT NULL default 0,
`played` BOOL NOT NULL default 0, `played` BOOL NOT NULL default 0,
`date` DATETIME NOT NULL, `date` DATETIME NOT NULL,
KEY `path` (`path`), KEY `path` (`path`),
......
...@@ -7,15 +7,13 @@ cache_time:0 ...@@ -7,15 +7,13 @@ cache_time:0
class_name: class_name:
class_file: class_file:
</dtml-comment> </dtml-comment>
<params>method_id</params> <params>catalog</params>
SELECT SELECT
path path
FROM FROM
record record
WHERE WHERE
played = 0 played = 0
<dtml-if method_id> AND catalog = <dtml-sqlvar catalog type="int">
AND method_id = <dtml-sqlvar method_id type="string">
</dtml-if>
ORDER BY ORDER BY
date date
...@@ -8,14 +8,14 @@ class_name: ...@@ -8,14 +8,14 @@ class_name:
class_file: class_file:
</dtml-comment> </dtml-comment>
<params>path_list <params>path_list
method_id</params> catalog</params>
INSERT INTO INSERT INTO
record record
VALUES VALUES
<dtml-in path_list> <dtml-in path_list>
( (
<dtml-sqlvar sequence-item type="string">, <dtml-sqlvar sequence-item type="string">,
<dtml-sqlvar method_id type="string">, <dtml-sqlvar catalog type="int">,
0, 0,
NOW() NOW()
) )
......
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